Author Topic: Uploading Images  (Read 3302 times)

0 Members and 1 Guest are viewing this topic.

Offline timboyk12

  • album.pl User
  • *
  • Posts: 9
  • Karma: +0/-0
  • I forgot to change the default text
Uploading Images
« on: January 17, 2006, 18:56:02 »
I have version 6.5 and everything has been working perfectly. But, when I moved my server to a different computer (it is hosted on a portable hard drive) the uploading images function no longer works properly. What happens is the user can upload the picture, it shows successful, and then when I go to look at the file on the hard drive, it is an image file the size of the original file, but it cannot be previewed, nor can it go through Imagemagick. Imagemagick gives the error Invalid JPEG file structure: two SOI markers. Any suggestions? I haven't changed anything, just updated my server version and now it is on a new computer. (changed processors from intel to amd if that matters). Any help would be greatly appreciated.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Uploading Images
« Reply #1 on: January 18, 2006, 10:46:58 »
I've never heard of that error before...  Do you have a sample image I can take a look at?

Offline timboyk12

  • album.pl User
  • *
  • Posts: 9
  • Karma: +0/-0
  • I forgot to change the default text
Re: Uploading Images
« Reply #2 on: January 18, 2006, 16:04:27 »
Here is the site address: http://apt.bounceme.net

The first photo there (fdg) is one i just uploaded. Imagemagick gave an error that the jpg contained no data. Thanks for your help!

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: Uploading Images
« Reply #3 on: January 19, 2006, 14:37:21 »
I uploaded a test photo and I could see the Imagemagick error message when it first tries to create the thumbnail. Then it created a black frame instead of a true thumbnail.
BTW: I'm surpised you allow free uploads. Of course, I could not delete the photo afterwards and try again.

What happens if you turn thumbnail creation off completely?
What happens if you upload a photo via ftp instead of from the album page?
Do you have automatic resizing on or off?

Does your web server have permission to write to its the temporary files location? Does ImageMagick ?
« Last Edit: January 19, 2006, 14:43:24 by frister »

Offline timboyk12

  • album.pl User
  • *
  • Posts: 9
  • Karma: +0/-0
  • I forgot to change the default text
Re: Uploading Images
« Reply #4 on: January 19, 2006, 17:29:30 »
If I turn thumbnail creation off, it still doesn't work. The acutal image isn't being uploaded, its just a strange file with information that does not belong to an image. If I open it in notepad, I see some stuff that looks like html in the image. Very strange. If I do it from ftp, it works fine. I don't have automatic resizing on. The web sever has permissions. I don't know if ImageMagick does. It did work before, I didn't change anything.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Uploading Images
« Reply #5 on: January 19, 2006, 18:17:50 »
What sort of HTML do you see in the image? Maybe it's a clue as to what's going on...

Offline timboyk12

  • album.pl User
  • *
  • Posts: 9
  • Karma: +0/-0
  • I forgot to change the default text
Re: Uploading Images
« Reply #6 on: January 19, 2006, 19:51:11 »
Here's the whole image code:

http://whrhs2007.tripod.com/code.txt

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Uploading Images
« Reply #7 on: January 20, 2006, 13:54:16 »
Very odd, most of the image is empty space with the odd block of... something. Try blanking out your imagemagic setting all together in the album config and see if that helps at all.

Offline timboyk12

  • album.pl User
  • *
  • Posts: 9
  • Karma: +0/-0
  • I forgot to change the default text
Re: Uploading Images
« Reply #8 on: January 21, 2006, 00:01:45 »
When uploading, I got this error

Content-type: text/html
Software error:

Malformed multipart POST

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

Any new ideas, the Imagemagick thing didnt work.

Thanks again, great program

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Uploading Images
« Reply #9 on: January 21, 2006, 09:01:05 »
Does that error come up for all images? Can you upload an image that gives that error to the test drive album? It sounds like a server issue, but I just want to rule out a problem with the file itself...

Offline timboyk12

  • album.pl User
  • *
  • Posts: 9
  • Karma: +0/-0
  • I forgot to change the default text
Re: Uploading Images
« Reply #10 on: January 22, 2006, 14:27:00 »
Yes, it is any image or movie file. I can upload them anywhere else and they are fine, but just on the album they are giving me problems. That multipost error went away, now I'm just still getting a corrupted image when uploading. Imagemagick is off and the image uploaded is still corrupted. I am using Fastream NETFile server 8.0.8. I don't know why it always worked before (on my dell) and now on my new HP it doesn't.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Uploading Images
« Reply #11 on: January 23, 2006, 15:56:22 »
This is where it would probably pay to know all about mime types and multi-part uploads etc... unfortunately I don't!

One other thing to try is see if you can get a simple file upload script (maybe even album.php) and test that... if the same issue occurs, it's a web server problem. If not... well, at least you know the server is OK!