I installed a trial version at another internet provider. Then the upload runs perfect. Does anyone have a suggestion why the upload doesn't work with my original internet provider ?
The image is a JPG and has less than 1Mb. filesize.
Page: 1
| Author | Post |
|---|---|
|
#1 Fri 7 November, 2008 16:45
|
|
|
Member
Registered: Oct 2008
Posts: 9
|
When I want to upload an image (jpg) I get the error: Image 'DSC0113.JPG' could not be opened. Please try uploading again.
I installed a trial version at another internet provider. Then the upload runs perfect. Does anyone have a suggestion why the upload doesn't work with my original internet provider ? The image is a JPG and has less than 1Mb. filesize. |
|
#2 Sat 8 November, 2008 12:55
|
|
|
Member
Registered: Oct 2008
Posts: 9
|
Addition: I tried several options with a normal ftp-program. It seems that when I do not use the PASV option with filetransfers all works well. But is that an option within Autodirector ????? |
|
#3 Sat 8 November, 2008 20:25
|
|
Administrator
![]() Registered: Apr 2008
Posts: 324
|
Images aren't uploaded using FTP - although you could use the import wizard to do that.
I'd suggest you contact your ISP. It's possible that they don't allow uploads, have limited the file sizes, or have not granted write permissions somewhere. _______________ AutoDirector administrator |
|
#4 Thu 13 November, 2008 17:01
|
|
|
Member
Registered: Oct 2008
Posts: 9
|
I understand that de upload function doesn't use FTP. I contacted the ISP. They allow uploads, don't limit the file sizes. It can be a permissions issue. How can I check that ( I am not familiar with the used scripting ) an what permissions have to be used where for the upload function by the script ?
|
|
#5 Fri 14 November, 2008 16:31
|
|
Administrator
![]() Registered: Apr 2008
Posts: 324
|
The most likely culprit is permissions on the autodirector data folder.
Chmod that, and all sub-folders, to 777 and try it again. _______________ AutoDirector administrator |
|
#6 Tue 18 November, 2008 10:15
|
|
|
Member
Registered: Oct 2008
Posts: 9
|
I did the chmod to 777 on the data, site-id, pics and thumbs libraries and on the files within the site-id. The next message is displayed when I want to upload the JPG:
------ Picture upload report: Image 'DSC01131.JPG' is not a JPG. Please click 'save vehicle' to save this set of pictures. ------ The picture is a JPG ! I am sure. I am getting a little frustrated because the whole site, including the upload function, runs fine elsewhere. We don't know why it won't work ! |
|
#7 Tue 18 November, 2008 13:58
|
|
Administrator
![]() Registered: Apr 2008
Posts: 324
|
Are you absolutely and positively certain that it's a JPG? AutoDirector checks the actual file type, not just the .jpg filename extension. Can you open it in an image editor? I'd recommend resizing and saving it, then uploading again. Have you tried other images?
If it continues to fail, then there could be a problem with the PHP or GD library installation/configuration on your server. _______________ AutoDirector administrator |
|
#8 Tue 18 November, 2008 14:41
|
|
|
Member
Registered: Oct 2008
Posts: 9
|
It is a jpg. I can open it with every jpg-editor. Windows does not have a problem with them all. I already resized it to a smaller size (600*450). They all have the same problem. Other pictures too. I deleted the lines in the vehicleadmin.php which check the file-type. Then I get the next fault-message in the php-script, "image xxxx.jpg could not be opened".
|
|
#9 Tue 18 November, 2008 20:23
|
|
|
Member
Registered: Oct 2008
Posts: 9
|
The @getimagesize doesn't return a value. Is a temporary-file created ? If so, where would that be placed ?
|
|
#10 Thu 20 November, 2008 11:45
|
|
|
Member
Registered: Oct 2008
Posts: 9
|
Problem can be closed.
We did not have rights to execute the commands "getimagesize" and "imagecreatefromjpeg" within the temp-directory. === |
|
#11 Thu 20 November, 2008 13:45
|
|
Administrator
![]() Registered: Apr 2008
Posts: 324
|
Glad you got it sorted out!
Was it something you could do, or did your ISP have to fix it? It's not a problem I've heard of before, but there might be something we can do in the code to help resolve the issue. We'll look into it. _______________ AutoDirector administrator |
|
#12 Fri 21 November, 2008 12:49
|
|
|
Member
Registered: Oct 2008
Posts: 9
|
The security-policy of the ISP on the tmp-directory prevented it. The tmp-directory is a shared directory for all users. To prevent unwanted access to files of another user the ISP blocked those commands on that directory-files. I am now granted to that commands there
. In this case it was up to the ISP to solve the problem.Suggestion: process the upload within a user owned upload directory ????? |
|
#13 Sat 22 November, 2008 9:52
|
|
Administrator
![]() Registered: Apr 2008
Posts: 324
|
That's quite an odd situation. Although processing is done on the images before they're moved to the AutoDirector folder, those PHP commands should only read from the tmp folder?
It's something we'll look into further, though. Thanks for the information. _______________ AutoDirector administrator |
Page: 1