Zen Cart Logo
Forums / Addon Admin Tools / Customer Uploaded Files - List and Download

Customer Uploaded Files - List and Download

Views: 24,476

Results 61 to 80 of 85
14 Oct 2012, 8:43 AM
#61
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Customer Uploaded Files - List and Download

Now you got me baffled.... Mine was working for best part of a year then suddenly stopped... with the error I reported earlier. I can click on the file in Customer Uploads and NOT 'save' BUT 'open' then the image indeed opens in the browser, but it gives error on 'save'

Are you saying you have made a new folder say in the root?

14 Oct 2012, 11:34 AM
#62
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,294
Plugin Contributions:
39

Re: Customer Uploaded Files - List and Download

Rizla:

Now you got me baffled.... Mine was working for best part of a year then suddenly stopped... with the error I reported earlier. I can click on the file in Customer Uploads and NOT 'save' BUT 'open' then the image indeed opens in the browser, but it gives error on 'save'

Are you saying you have made a new folder say in the root?

I would guess that the server was upgraded.......

Can you let us know what is here Configuration >> Maximum Values >> Allowed Filename Extensions?

PRO-Webs, Inc. since 2003 https://pro-webs.net/

15 Oct 2012, 5:10 AM
#63
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

mprough:

I would guess that the server was upgraded.......

Can you let us know what is here Configuration >> Maximum Values >> Allowed Filename Extensions?

jpg,jpeg,gif,png,eps,cdr,ai,pdf,tif,tiff,bmp,zip

15 Oct 2012, 10:49 AM
#64
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,294
Plugin Contributions:
39

Re: Customer Uploaded Files - List and Download

Rizla:

jpg,jpeg,gif,png,eps,cdr,ai,pdf,tif,tiff,bmp,zip
It looks like this will be a server config issue. jpeg is not a true jpg.... additionally, the handling of file names with capital letters also must be compiled correctly in libjpeg, GD/ImageMagick supported formats.

~Melanie

PRO-Webs, Inc. since 2003 https://pro-webs.net/

17 Oct 2012, 7:57 AM
#65
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

Hi Melanie
Thanks... So your saying I need to contact my host company?

I know it worked for ages and I reckon it was when they upgraded that the issue began... Though I can't be sure.

Thanks

23 Jan 2013, 9:06 AM
#66
printwithdesign avatar

printwithdesign

New Zenner

Join Date:
Aug 2009
Posts:
17
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

Does this plugin "Email a Link to the Store Admin"? I installed this plugin awhile back and client ask me the question if it emailed the store admin. I don't recall as I installed this years ago, anyone have this answer please?

Purpose I am asking is if it does email the link of an uploaded file, Where can I go to update the email address?

23 Jan 2013, 11:27 AM
#67
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,294
Plugin Contributions:
39

Re: Customer Uploaded Files - List and Download

printwithdesign:

Does this plugin "Email a Link to the Store Admin"? I installed this plugin awhile back and client ask me the question if it emailed the store admin. I don't recall as I installed this years ago, anyone have this answer please?

Purpose I am asking is if it does email the link of an uploaded file, Where can I go to update the email address?

No email, there is a new admin screen to download the uploaded files

~Melanie

PRO-Webs, Inc. since 2003 https://pro-webs.net/

1 May 2013, 8:37 AM
#68
monstermaker avatar

monstermaker

New Zenner

Join Date:
Apr 2013
Location:
United Kingdom
Posts:
4
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

Downloaded and tried to use the version for 1.5 but cannot unzip. does anyone know the password for this file?

1 May 2013, 11:41 AM
#69
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,294
Plugin Contributions:
39

Re: Customer Uploaded Files - List and Download

Monstermaker:

Downloaded and tried to use the version for 1.5 but cannot unzip. does anyone know the password for this file?

There is no password on the file. Most likely the filename is too many characters for your PC. Try shortening it. If you use a program such as WinZip it will tell you what issues are with zip files.

~Melanie

PRO-Webs, Inc. since 2003 https://pro-webs.net/

3 May 2013, 1:41 PM
#70
monstermaker avatar

monstermaker

New Zenner

Join Date:
Apr 2013
Location:
United Kingdom
Posts:
4
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

You was right, it was the filename!
Its all uploaded and working now.
Thanks

25 Mar 2014, 3:08 PM
#71
fubar73 avatar

fubar73

New Zenner

Join Date:
Jan 2012
Posts:
15
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

I hope this thread still active?
The problem I'm having with the file download is once downloaded the files will not open, it doesn't matter what file is uploaded (jpg, jpeg, bmp ect..)
I get this when trying to open them..
'This file is not a valid bitmap file, or its format is not currently supported.'

Thanks in advance

27 Mar 2014, 2:30 PM
#72
fubar73 avatar

fubar73

New Zenner

Join Date:
Jan 2012
Posts:
15
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

Anyone??

27 Mar 2014, 2:34 PM
#73
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,294
Plugin Contributions:
39

Re: Customer Uploaded Files - List and Download

I would contact your webhost.... have then look to see that it is being stored correctly or is it corrupted on upload

Also try the download on another computer to see if it the device you are on with the issue

PRO-Webs, Inc. since 2003 https://pro-webs.net/

22 Apr 2015, 10:43 PM
#74
minkchance avatar

minkchance

New Zenner

Join Date:
Dec 2010
Posts:
1
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

Does this work with version 1.5.4? I can't get it to work.

13 Jan 2016, 6:02 PM
#75
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

decartwr:

I haven't had time to thoroughly investigate this (and it's almost midnight my time, so fatigue is working against me here)...BUT, it does appear that the uploads.php code assumes file extensions will always be lowercase, which is bogus.

See if these changes help:

Around line 229 of uploads.php, find a line like this:

$file_extension = strtolower( substr( strrchr( $fileName, '.' ), 1) );

> 
> and change it to be like this:
> 
> ```
$file_extension = strtolower( $fext = substr( strrchr( $fileName, '.' ), 1) );

and then around line 249 find:

$fs_path = DIR_FS_UPLOADS . $index . '.' . $file_extension;

> 
> and change it to:
> 
> ```
$fs_path = DIR_FS_UPLOADS . $index . '.' . $fext;

and then (optionally, only if you want to preserve the case of the extension when you download the file) around 256 find:

$nfile = 'zc_order' . $oid . '_' . $index . '.' . $file_extension;

> 
> and change it to:
> 
> ```
$nfile = 'zc_order' . $oid . '_' . $index . '.' . $fext;

I have NOT tested these mods, but try them and post results here (being on opposite sides of the world is a challenge, time-wise).

Thanks for this! i was looking for this solution a long time, wondering why it is not implemented in the newer version by default. you may want to link to this support thread on the add-on page as well.

Another suggestion would be (perhaps a s a separate plugin) to turn the file attribute data shown on the orders.php to a link so that the file can be directly downloaded on the order page.

Thanks for the great mod!

16 Oct 2018, 6:25 PM
#76
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

Just installed this on a new zencart installation version 1.5.5f and php 5.6. no upload link shows up in admin panel. Any ideas?

16 Oct 2018, 7:34 PM
#77
lordzoabar avatar

lordzoabar

New Zenner

Join Date:
Nov 2017
Location:
Athens, Georgia, USA
Posts:
104
Plugin Contributions:
0

Re: Customer Uploaded Files - List and Download

If you install the previous version (Version 1.3) first, then overwrite with 1.4, the the page shows up fine. From what I can tell, it HAS to have the extra_datafiles (admin->includes->extra_datafiles) included, and 1.4 got rid of that entire folder for some reason.

That said, I updated from a perfectly working Version 1.3 to 1.4, and when I click to download the image, it takes me to "That page could not be found". And aside from the extra_datafiles being removed, I can't figure out anything that's wrong.

My advice, stick with 1.3 for now. It's less visually appealing, but it works beautifully. (assuming you've set your Configure.php as stated in the readme)

16 Oct 2018, 9:25 PM
#78
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Customer Uploaded Files - List and Download

Lordzoabar:

If you install the previous version (Version 1.3) first, then overwrite with 1.4, the the page shows up fine. From what I can tell, it HAS to have the extra_datafiles (admin->includes->extra_datafiles) included, and 1.4 got rid of that entire folder for some reason.

That said, I updated from a perfectly working Version 1.3 to 1.4, and when I click to download the image, it takes me to "That page could not be found". And aside from the extra_datafiles being removed, I can't figure out anything that's wrong.

My advice, stick with 1.3 for now. It's less visually appealing, but it works beautifully. (assuming you've set your Configure.php as stated in the readme)

Not sure why i deleted it from the package, must have been a brain fart, as it is obviously needed, as it also contains the values that were previously in the configure.php file.
The not working download link: I will investigate that, and report back

16 Oct 2018, 9:43 PM
#79
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Customer Uploaded Files - List and Download

quick fix for v1.4

add global $db; to uploads.php
so that

function download_file($index, $oid) {
//  Look up in the database of upload files, that

looks like

function download_file($index, $oid) {
global $db;
//  Look up in the database of upload files, that
16 Oct 2018, 10:02 PM
#80
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Customer Uploaded Files - List and Download

Version 1.4.1 has been submitted
Bug fixes
1. add missing file
2. add missing global in uploads file
3. add language parameter to query, so file do not show multiple times in multilingual stores.