Jump to content


Photo

php upload script distorts file


  • Please log in to reply
3 replies to this topic

#1 arag0rn

arag0rn
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 04 June 2006 - 08:21 PM

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
http://gymkhana.iitb.ac.in/~ecell/temp/94.jpg

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

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


#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 04 June 2006 - 10:06 PM

[!--quoteo(post=380014:date=Jun 4 2006, 08:21 PM:name=ARAG0RN)--][div class=\'quotetop\']QUOTE(ARAG0RN @ Jun 4 2006, 08:21 PM) View Post[/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
http://gymkhana.iitb.ac.in/~ecell/temp/94.jpg

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

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.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#3 arag0rn

arag0rn
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 05 June 2006 - 11:58 AM

^^^^bump^^^^^^^^^

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 June 2006 - 12:25 PM

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.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users