Make WordPress Core

Opened 18 years ago

Closed 13 years ago

Last modified 13 years ago

#6768 closed defect (bug) (worksforme)

Punctuation can break photo uploads

Reported by: flammable Owned by:
Priority: normal Milestone:
Component: Upload Version: 2.5
Severity: normal Keywords:
Cc: Focuses:

Description

I'm doing a lot of photo uploads, and I came across a file I named 'Taking a picture of me?.JPG' - I'm using Mac OS X, so a filename containing a question mark is legal. I don't have Windows running right now, but I'm pretty sure it's disallowed there.

Anyway, I tried uploading this picture, and although the image uploader accepted it, and the progress bar completed, it never built a thumbnail for the picture (see attachment 1). The image is absent when viewing the gallery on a WordPress page, but when browsing the media library, it seems to know the item exists (see attachment 2). I blurred out my path information, because that's apparently a good idea.

Renaming the file to 'Taking a picture of me.JPG' allowed it to upload without any issues.

I'm using Safari 3.1.1 on Mac OS X 10.5.2. Am hosted with Dreamhost. Let me know if I can supply any more details. :)

Thanks!

Attachments (2)

Picture 1.png (59.2 KB ) - added by flammable 18 years ago.
Picture 2.png (33.4 KB ) - added by flammable 18 years ago.

Download all attachments as: .zip

Change History (8)

@flammable
18 years ago

@flammable
18 years ago

#1 @ryan
18 years ago

  • Milestone 2.5.22.9

Milestone 2.5.2 deleted

#2 @Denis-de-Bernardy
17 years ago

  • Component GeneralUpload
  • Owner anonymous removed

#3 @Denis-de-Bernardy
17 years ago

confirmed in trunk. it's probably due to swfuploader. placing the following in async-upload.php reveals some information:

header('Content-Type: text/plain; charset=' . get_option('blog_charset'));
var_dump($_FILES);die;
/*
array(1) {
  ["async-upload"]=>
  array(5) {
    ["name"]=>
    string(4) "test" // should be test?.jpg
    ["type"]=>
    string(24) "application/octet-stream"
    ["tmp_name"]=>
    string(26) "/private/var/tmp/phpxbU53I"
    ["error"]=>
    int(0)
    ["size"]=>
    int(15243)
  }
}
*/

#4 @janeforshort
17 years ago

  • Milestone 2.9Future Release

Punting due to lack of time and traction.

#5 @iseulde
13 years ago

  • Keywords gallery image uploader removed
  • Resolutionworksforme
  • Status newclosed

Tested in 3.6.

#6 @helen
13 years ago

  • Milestone Future Release
Note: See TracTickets for help on using tickets.