Zen Cart Logo
Forums / Basic Configuration / Trouble Uploading Images

Trouble Uploading Images

Views: 1,753

Results 1 to 9 of 9
2 Jul 2024, 5:09 AM
#1
pixodaros avatar

pixodaros

New Zenner

Join Date:
May 2023
Location:
Canada
Posts:
56
Plugin Contributions:
0

Trouble Uploading Images

Last winter I upgraded a Zen Cart store to version 1.5.8. When we try to add a new product and upload an image wheel brooch 1.jpg.JPG we get an error message ```
IMAGE FILE IS MISSING


I am just starting to look in to this, but has anyone faced a similar issue?  Or does anyone have a suggestion which [debug logs](https://docs.zen-cart.com/user/troubleshooting/debug_logs/) to search?

Both the regular upload tool and the Image Handler plugin have this issue.  The new product appears but with NO PICTURE AVAILABLE displayed.  I can provide more details once I have dug up my notes on this project.
2 Jul 2024, 10:26 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,069
Plugin Contributions:
56

Re: Trouble Uploading Images

wheel brooch 1.jpg.JPG ... really? Not only does that file's name have embedded blanks (which can be an issue on some OS's), it's got a double jpg (one to end its name and another to identify its file-extension).

Just rename the file to be wheel-brooch-1.jpg.

2 Jul 2024, 12:31 PM
#3
jameswilson avatar

jameswilson

New Zenner

Join Date:
Jul 2006
Posts:
69
Plugin Contributions:
0

Re: Trouble Uploading Images

Agreed.
It may be your using windows and not showing file extentions. Id remove the last JPG
Open the file in an imaging editor and save as something without spaces and upload that file though the admin

2 Jul 2024, 11:50 PM
#4
pixodaros avatar

pixodaros

New Zenner

Join Date:
May 2023
Location:
Canada
Posts:
56
Plugin Contributions:
0

Re: Trouble Uploading Images

The file name with spaces and a double extension was my first guess too, but so far changing the name does not seem to work. I hope to have a more thorough update tomorrow.

4 Jul 2024, 1:30 AM
#5
pixodaros avatar

pixodaros

New Zenner

Join Date:
May 2023
Location:
Canada
Posts:
56
Plugin Contributions:
0

Re: Trouble Uploading Images

I was able to upload the images with copies of the files from the iPad using the Admin interface and Image Handler 5.3.4. I used file names like image01.jpeg, image02.jpeg, image03.jpeg Perhaps the spaces in the file names or the double file extension was the issue. At first glance I don't see anything relevant in the logs.

4 Jul 2024, 3:14 AM
#6
pixodaros avatar

pixodaros

New Zenner

Join Date:
May 2023
Location:
Canada
Posts:
56
Plugin Contributions:
0

Re: Trouble Uploading Images

I was able to upload files with the following names using Image Handler 5.3.4 on my Linux box

'wheel brooch 2.jpg'
'wheel brooch 2.jpg.jpg'

I like the idea that the error had something to do with Linux or FTP and file names with spaces or double extensions but I can no longer reproduce the bug. Not sure if there are any other logs worth searching in case they record the past failures to upload.

4 Jul 2024, 3:39 AM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Trouble Uploading Images

If you use Filezilla to upload, look at the bottom at the Failed Transfers tab.

4 Jul 2024, 4:45 AM
#8
pixodaros avatar

pixodaros

New Zenner

Join Date:
May 2023
Location:
Canada
Posts:
56
Plugin Contributions:
0

Re: Trouble Uploading Images

The failed uploads were with the Admin > Catalogue > Products/Categories tool and the Image Handler 5 plugin so ZC's internal logs seem like the best hope.

On one of the sites which I actually run I upload files over FTP using shell commands, but Zen Cart has a GUI.

4 Jul 2024, 11:41 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,771
Plugin Contributions:
9

Re: Trouble Uploading Images

As far as correcting spaces and double extensions, spacetornado Renamer is a god send.

Old, but will handle an entire directory and replace the extra .jpg, remove the spaces, and change the case (sometimes a problem as well) in one action.