File names with quotes get truncated

Hi,

When I upload a file called foto's.jpg I end up with a file called s.jpg on the server.
I believe the incorrect file name is transferred to the upload.php script.

Does anybody have a solution?

gyphie's picture

Single quote

I suspect that the single quote is interfering with your SQL statement (but who knows, there are no code snippets).

Single quotes won't have any affect on SWFUpload uploads. A double quote might because of the way Window's file browser dialog delimits the file names (but double quotes aren't allowed in Windows file names). I'm not sure how other OS will handle this.

Quotes

There's no SQL involved at this time. I'm just trying to save the uploaded picture after resizing by:

imagejpeg($new_img, "uploads/".$_FILES["Filedata"]["name"]);

At this point the filename is mixed up...

gyphie's picture

Can't reproduce

I'm afraid I'm unable to reproduce this. I've tested on a local IIS 7 server and on the SWFUpload demo site.

Recommendations:
1. Turn on the "debug" setting and see what SWFUpload is seeing
2. Capture the upload using a packet sniffer to see what is actually being sent to the server