WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#19842 closed defect (bug) (duplicate)

Import files with accents create an error 404

Reported by: FxBe Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Media Keywords: 2nd-opinion needs-patch
Focuses: Cc:

Description

I'm using wp in french on windows 7.

If i import a file : aéèâ.txt

in my upload folder it becomes : aéèâ.txt

and then i get error 404 on the link.

Change History (6)

#1 @knutsp
8 years ago

  • Cc knut@… added
  • Keywords needs-patch added

I can confirm this. Same for Scandinavian characters like æäøöå, on Windows servers. If I open Explorer on the server, or use FTP, I see that the files names are incorrect. If I correct the file names to the actual file name of the uploaded file then the problem is fixed immediately.

#2 @SergeyBiryukov
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This is specific to Windows builds of PHP (see my comment in #15955).

Not sure if there's a good solution until PHP supports working with Windows filenames in Unicode.

#3 follow-up: @FxBe
8 years ago

Thanks for the fix and the coming patch.

Now with your plugin i got a security message error when i try to import the file.

"This type of file is not supported for security reasons" and so any importation is impossible

#4 in reply to: ↑ 3 @SergeyBiryukov
8 years ago

Replying to FxBe:

"This type of file is not supported for security reasons"

Is it the same "aéèâ.txt" file you are trying to upload? Seems to be uploading correctly on my install (with the plugin).

#5 @FxBe
8 years ago

Yes exactly the same, but i can't upload any file at all, turn your plugin off and everything turn back to normal

#6 @FxBe
8 years ago

To give some precision, i tried on another computer and the plugin is working perfectly.
I must have an admin right problem on my own computer.
I'll wait for the patch, thanks for you for all your efforts

Note: See TracTickets for help on using tickets.