Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
weddingphotoswap  
#1 Posted : Tuesday, December 11, 2012 3:28:57 PM(UTC)
weddingphotoswap

Rank: Newbie

Groups: Member
Joined: 12/4/2012(UTC)
Posts: 1

I have been developing a site using the Upload Suite HTML5/Flash PHP SDK. The HTML5 process works fine, I am now testing the Flash uploader expecting the same server-side functionality to work, but it doesn't.

I have stripped the server-side back to create a file from the JPG I am uploading using...

Code:
file_put_contents('/path/to/file/file.jpg', $_POST['File0_0']);


...and that writes a corrupted JPG image. When testing with the HTML5 uploader using the same image it works fine.

I've tested with Upload Suite v8.0.28, v8.0.26 and v8.0.8, and the Flash process creates corrupted JPGs with all three, but the HTML5 method works perfectly fine.

I'm guessing the issue is with the converters in the Flash object creating corrupted images before they are POSTed to the server-side? I have 3 convertors set and the HTML5 process works perfectly fine with these converters.

Please help!
p.shirykalova  
#2 Posted : Tuesday, December 11, 2012 7:13:50 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups: Member
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Matthew,

I replied you in your support ticket. The problem might be in magic quotes.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
jmarcv  
#3 Posted : Monday, January 14, 2013 10:22:39 AM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
I had this issue, and it was magic_quotes.

For the benefit of anyone else finding this post:

If you are not ready to disable magic_quotes, this will fail:
file_put_contents('/path/to/file/file.jpg', $_POST['File0_0']);

Use this instead
file_put_contents('/path/to/file/file.jpg', stripSlashes($_POST['File0_0']));





Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.