Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#62239 closed defect (bug) (invalid)

Error: An error occurred in the upload. Please try again later. (when having odd characters in filename)

Reported by: oldrup's profile oldrup Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Upload Keywords:
Focuses: Cc:

Description

When uploading with bonkers characters, to WP 6.7 beta 3, specifically this filename:

A text document Øblegrød! med mærkelige tegn æøå ÆØÅ #-🌻😂❤️👏.txt

I get this error: "An error occurred in the upload. Please try again later."

Screenshot attached.

The file DOES get uploaded though.

Uploading files with sane characters does not trigger this error.

Attachments (4)

Screenshot 2024-10-17 082423.jpg (36.4 KB) - added by oldrup 9 months ago.
Screenshot of error
Screenshot 2024-10-17 at 12.09.49 PM.png (22.0 KB) - added by pratiklondhe 9 months ago.
Seems weird, I am getting a different error ( don't think .txt is allowed )
Screenshot 2024-10-17 at 1.18.19 PM.png (17.4 KB) - added by pratiklondhe 9 months ago.
Same error, the filename is normal and also the file contains some text 🤔
Screenshot 2024-10-21 at 10.10.15 AM.png (17.3 KB) - added by pratiklondhe 9 months ago.

Download all attachments as: .zip

Change History (8)

@oldrup
9 months ago

Screenshot of error

@pratiklondhe
9 months ago

Seems weird, I am getting a different error ( don't think .txt is allowed )

#1 @oldrup
9 months ago

Weird indeed.

I just uploaded a test.txt file, with no issues. After renaming to something silly, got the error.

@pratiklondhe are you able to upload a simply named txt file?

Make sure it contains something. Empty files can cause issues on some systems.

@pratiklondhe
9 months ago

Same error, the filename is normal and also the file contains some text 🤔

#2 @pratiklondhe
9 months ago

hey @oldrup , I also tried uploading a normal image with these characters and it still uploads without issues, possible to get instructions on how this can be reproduced?

#3 @oldrup
9 months ago

  • Resolution set to invalid
  • Status changed from new to closed

Ah, @pratiklondhe — you're right!

I had the Activity Log plugin enabled to log, well, any activity and errors, and it seems that the logging itself caused the issue.

https://en-gb.wordpress.org/plugins/aryo-activity-log/

No issue with Activity Log disabled

I'll take this issue to them

Thank you for helping me to troubleshoot this one. Didn't expect my logging to be the actual cause of the problem. Will check without anything at all enabled next time. ;)

Closing

#4 @desrosj
9 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.