Jump to content

Archived

This topic is now archived and is closed to further replies.

arag0rn

php upload script distorts file

Recommended Posts

i want to make a php upload script. i used a script that let me upload to the server. However, there is this problem that the file gets distorted on upload. For example the image file
[code]
http://gymkhana.iitb.ac.in/~ecell/temp/94.jpg
[/code]

on upload using the upload script becomes
[code]
http://gymkhana.iitb.ac.in/~ecell/temp/uploadedfiles/94.jpg
[/code]

And ya, it cant be a script problem because i tried 3 diiferent scripts.
On the same server phpbb also fails to upload proper avatars. The avatars are distorted when the image becomes bigger.

So, i guess it is some kind of server problem. Any idea as to what could be wrong?

And its not only images. Word files also get corrupt

Share this post


Link to post
Share on other sites
[!--quoteo(post=380014:date=Jun 4 2006, 08:21 PM:name=ARAG0RN)--][div class=\'quotetop\']QUOTE(ARAG0RN @ Jun 4 2006, 08:21 PM) [snapback]380014[/snapback][/div][div class=\'quotemain\'][!--quotec--]
i want to make a php upload script. i used a script that let me upload to the server. However, there is this problem that the file gets distorted on upload. For example the image file
[code]
http://gymkhana.iitb.ac.in/~ecell/temp/94.jpg
[/code]

on upload using the upload script becomes
[code]
http://gymkhana.iitb.ac.in/~ecell/temp/uploadedfiles/94.jpg
[/code]

And ya, it cant be a script problem because i tried 3 diiferent scripts.
On the same server phpbb also fails to upload proper avatars. The avatars are distorted when the image becomes bigger.

So, i guess it is some kind of server problem. Any idea as to what could be wrong?

And its not only images. Word files also get corrupt
[/quote]

To me looks like you have set the php.ini to a specified directory check ok.

Share this post


Link to post
Share on other sites
If three different scripts produce distorted images, and phpbb uploads get distorted, and a Word file can get corrupted this isn't a php problem. It's a almost certainly a problem with your server. Tell your web host to fix it.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.