-
Customer Uploaded Files - List and Download
This is the support thread for the admin add-on "Customer Uploaded Files - List and Download" (see http://www.zen-cart.com/index.php?ma...oducts_id=1688)
This add-on lists all files that customers have uploaded in association with orders. Show the order number, customer's name, and the file name they assigned. Provides a single-click secure download for such files. Adds a menu item "Uploads" to the "Customers" menu in the admin area.
-
Re: Customer Uploaded Files - List and Download
I have installed the Customer Uploaded Files List and Download. I am running Zen V1.3.9.d and everything is functioning properly with exception of the download link in the administrators area. I get the message: File "DIR_FS_UPLOADS3.jpg" does not exist (245)
In my upload directory there is a file 3.jpg and this is the file I tested the upload with.
I found that I needed to change the permissions on the /admin/includes/configure.php. I found that when I downloaded the file and added the two lines.. uploaded the file back to my site, the changes were not there. the configure.php was set to permissions 444.
Hope this helps anyone else having an issue. Other than this, I am very pleased with the contribution. works fine!
Thank you Dana. Just what we needed here. a way to associate the uploaded file with the order.
Steve Beal
-
Re: Customer Uploaded Files - List and Download
:cry:
I just tried installing and it's not working at all for me. There is no 'upload' under 'customer' when i'm logged in the admin.
this is what i have: under admin the folder which i downloaded 'uploads 1.0' and i wend under admin/includes/configure.php and copy the two files this is what's showing now:
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS );
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
now was i also to go to: name of shop/includes/configure.php and change the files as well.
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
authentic01
:cry:
this is what i have: under admin the folder which i downloaded 'uploads 1.0' ...
It's not enough to copy the folder "upload 1.0" to your admin folder. You have to move three files from the "uploads 1.0" folder to new locations:
1) The file "uploads_customers_dhtml.php" which is buried in a nested series of folders at "uploads 1.0/admin/includes/boxes/extra_boxes/" must be copied to YOUR admin folder at "admin/includes/boxes/extra_boxes".
2) Similarly for "uploads 1.0/admin/includes/extra_datafiles/uploads_filenames.php" which gets copied to your "admin/includes/extra_datafiles/uploads_filenames.php".
3) And "uploads 1.0/admin/includes/languages/english/extra_definitions/uploads.php" gets copied to your "admin/includes/languages/english/extra_definitions/uploads.php".
-
Re: Customer Uploaded Files - List and Download
Hi, thank you for this great mod. it's very helpful and works great but is there a way of deleting some or all of the upload logs, it dose get crowded after some time.:cool:
I'm using 1.3.9.d version of zen-cart
-
1 Attachment(s)
Re: Customer Uploaded Files - List and Download
Great Mod!
I wanted to add more info to the file name... I've attached an uploaded version of the uploads.php file that grabs the customer's ID, customer's name and the original file name. It strips the spaces from the customer's name (assuming it was sanitized when created).
Use at your enjoyment (and risk!)
P
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
3DPeruna
Great Mod!
I wanted to add more info to the file name... I've attached an uploaded version of the uploads.php file that grabs the customer's ID, customer's name and the original file name. It strips the spaces from the customer's name (assuming it was sanitized when created).
Use at your enjoyment (and risk!)
P
Where dose this file go?
-
Re: Customer Uploaded Files - List and Download
It only worked when I put it in your admin/ directory (backup your original file).
-
Re: Customer Uploaded Files - List and Download
Hello did all in the notes. I'm on 1.3.9g
When in the admin I go to uploads..try to download the zip I uploaded and I get Can not open file: it does not appear to be a valid archive.
-
Re: Customer Uploaded Files - List and Download
romy, does it work for other file types? If you upload a plain text file (.txt) or a jpeg (.jpg) for example, does that download correctly?
-
Re: Customer Uploaded Files - List and Download
Yes..PSD,EPS,AI,JPG all work great.
can upload the zip file fine but can not open it.
would the htaccess have anything to do with this.
-
Re: Customer Uploaded Files - List and Download
I think it's unlikely the default .htaccess files of ZC having any effect. If you have done anything with MIME types in your .htaccess, then yes, that might have an effect.
Since this problem is likely affected by the kind of computer you're using, what sort of browser/pc combo are you using? What OS do you run, and what browser are you using?
Try this using different browsers. For example, try Opera, Firefox, and either IE or Safari (assuming you're either on Windows or Mac). Get a friend to try this, especially if they are using a different kind of PC, and see what happens on their computer.
When you upload a file and then later download it, the file is *supposed* to be unchanged. Bit for bit, the downloaded file is supposed to be identical with the file you uploaded.
So investigate that--when you download your zipped archive, are you getting back a file that's identical to the one you uploaded (you may need to download a utility program to help you determine whether two files are bit-for-bit identical)?
If the file you download is identical to the one you uploaded, then the problem isn't with ZC, it's something messed up on your computer.
But if the downloaded file is NOT identical to the one you uploaded, then the problem lies either in how you're hosting and/or configuring ZC, or in how you have your browser configured (in particular, how you have your MIME types set up). And it's more likely your browser than ZC.
-
Re: Customer Uploaded Files - List and Download
This is a great mod, thanks.
I'm trying to format the upload name in the order email. I can't seem to control it through the email .css. Any ideas?
Is there any way to show the uploaded image in the admin or order email? I guess that would involve ctreating a thumbnail of the upload if it's an image.
Cheers and thanks again,
-
Re: Customer Uploaded Files - List and Download
I just tried the new uploads.php file but it gives an error - zc.orders not found.
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
marknew
I just tried the new uploads.php file but it gives an error - zc.orders not found.
Details, please! What is the exact text of the error message? What version of ZC are you running?
-
Re: Customer Uploaded Files - List and Download
That problem was when i used the "updated" uploads.php from 3DPeruna. I have gone back to the original uploads.php.
The problem i have now is uploaded jpegs named filename.jpg download correctly but files where the extension is in capitals - EG filename.JPG can't be downloaded. When i click the link it says the file can't be found.
The error message is -
File "/home/newmedia/public_html/photosoncanvas.net.au/images/uploads/54.jpg" does not exist (251)
I have checked an the file is the but any files ending in .JPG aren't found.
Zencart 1.3.9d
Also, is there a way to remove the old files from the download list?
Thanks
-
Re: Customer Uploaded Files - List and Download
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:
Code:
$file_extension = strtolower( substr( strrchr( $fileName, '.' ), 1) );
and change it to be like this:
Code:
$file_extension = strtolower( $fext = substr( strrchr( $fileName, '.' ), 1) );
and then around line 249 find:
Code:
$fs_path = DIR_FS_UPLOADS . $index . '.' . $file_extension;
and change it to:
Code:
$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:
Code:
$nfile = 'zc_order' . $oid . '_' . $index . '.' . $file_extension;
and change it to:
Code:
$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).
-
Re: Customer Uploaded Files - List and Download
there's no delete function on this add on, did anyone tried adding a delete function?
-
Re: Customer Uploaded Files - List and Download
Thanks for the above changes to fix the issue with uppercase and lowercase file extension. Found out I had the issue when I installed this mod, found this forum and made the changes and they work perfectly.
Of note too, is having a delete function on these uploads would be perfect so I'm on the list for seeing that come about too.
-
Re: Customer Uploaded Files - List and Download
Hi All,
I've just downloaded this contribution but I don't think all the files are there?
I have the following directory Structure:
_MACOSX
|-uploads1.01
| |-admin
| | -includes
| | |-boxes
| | | |- ._.DS_Store
| | |-languages (this directory is Empty)
| |- ._.DS_Store
| |- ._uploads.php
|- ._.DS_Store
|- ._readme.txt
uploads 1.01
|-.DS_Store
|-licence.txt
|-readme.txt
Is there supposed to be more files as it doesn't seem to be working at all.
Regards,
Brett Rogers
-
Re: Customer Uploaded Files - List and Download
There are 4 files that go into your ZC installation (in addition, there are also license.txt and readme.txt files that you read, rather than installing):
admin -> includes -> boxes -> extra_boxes -> uploads_customers_dhtml.php
admin -> includes -> extra_datafiles -> uploads_filenames.php
admin -> includes -> languages -> english -> extra_definitions -> uploads.php
admin -> uploads.php
So, yes, you're missing some files.
-
Re: Customer Uploaded Files - List and Download
It works as promised but is almost useless for any long term use if you have lots and lot of uploads on a daily basis unless you are of a mind to edit your database very frequently. It has no function to delete uploads so they just pile up. Eventually you have to manually delete the files off the server. it uses a numerical ordering procedure so if you do delete files then new uploads will be somewhere within the many pages and pages of uploads and you have to dig around to find them. And of course, when you do delete files off the server, you need to also go into the data base and edit the table. otherwise, you have pages and pages of the uploads. Over time this can be HUGE.
I have been using this mod for a bit and since we sell a product that is about custom printing we have about 5-15 or so customers uploading images daily and it adds up very fast.
Right now we have over 20 pages of uploads and because of the way it orders them they are not even in order of received.
Not being a programmer is there anyone out there willing to take a look at this mod and make it more better? I'd be willing to pay for a functional mod in this category that is admin friendly.
-
Re: Customer Uploaded Files - List and Download
As I'm the author of this mod, I'll respond to your well expressed frustrations with it.
I had a client, a print shop, that wanted to explore having an eCommerce site. I used ZC to build a pilot for them. Wanting to show them how customer uploads would look, I created this mod. Turns out they didn't go forward with their plans, so I had no immediate incentive to refine it into a full-featured mod.
Nonetheless, in the spirit of open source software, I contributed this mod to the community, even though I knew it wasn't complete. One possibility was that somebody else would build on my work and add major features to it.
I'd be willing to discuss doing more work on this.
-
Re: Customer Uploaded Files - List and Download
Seems like it should be a relatively simple process for someone well versed in coding with sql and php. I say that because I know enough to be dangerous.
It needs to order by order# not id# (regardless of whether subsequent records have been deleted or not).
It needs to have a link connected to each record in zc admin to delete the record from zc admin which also deletes record from the database and at the same time it deletes said record from admin and db also deletes the graphic connected to said record from the server images/uploads folder.
For me, I think that would make it truly functional as a mod.
For others, so I have heard, and I agree, an added plus would be if it actually connected the image to the order confirmation sent to the client as well as to admin. That would be understandably, a more complex coding issue. But too- if it did have this feature, would be preferred if it could be turned on or off or coded so it could be removed from the source file without affecting anything else as some might not want that feature.
-
Re: Customer Uploaded Files - List and Download
I guess no one has any answers here with respect to making this module a workable module so that you can delete uploaded files, and search for them by order number or customer name without having to be a certified database administrator or php coder?
As mentioned, as it stands you cannot delete the files it saves that a customer uploads without going directly to the server and even then you must have root access, cannot delete the records it makes in the database without going into the database, cannot search for a customers upload by order number or customer name or any method at all, and it does not order them in a way that makes it easy for you in the case of where you have thousands of uploads from thousands of customers and need to search for a particular order and in fact does not order them by order received making it near impossible to find the one you need in the case of many orders daily.
No one else is interested in having this module work as it should?
Not to take away from the original designer as I understand his original reason for doing what he did ie why he created the module and why it has its limitations per his explanation of that, but it seems apparent he doesn't wish to support it beyond that. He did private message me about making it do what I was asking for a fee of which I replied I was interested but never heard anything further so I must assume it isn't a priority.
However, let it be known I do appreciate him making it available as it is and do appreciate it at least getting us this far.
I am just saying, it really needs to go a little bit further in order to be truly functional.
So my question is, are there others using this module and or interested in having it work in a way that would be beneficial?
Reason I ask is I am going to hire a PHP programmer outside of this forum to make it work right. We've had 30+ pages of customers with uploads since I installed this module and its great for what we need since the majority of them need to upload a graphic with their order but its deficiencies from an administrative perspective make it hugely cumbersome and almost (I said almost) useless.
-
Re: Customer Uploaded Files - List and Download
Just like thomaswhiteeagle I use this mod for customer uploads of photographs for banners which can have up to 6 photos each. It was good when first installed 3 months ago but now with 25 pages of uploads the latest ones are appearing around page 15 or 16 because the sort order is by ID rather than by Order Number.
The best and simplest solution would be to sort by order number so the latest upload was on page 1. I do not see any need for a search option if the files were displayed in this way.
I delete the uploaded files manually on a weekly basis from the image uploads folder but the fact that the names stay in the uploads admin is frustrating, so if within the admin it was possible to remove the file names it would be much better.
Having said that the mod itself, even with these limitation, is very useful. There are far less chances of making a mistake and getting the wrong photo printed on a banner than with the basic Zen numbering of uploads.
So if anyone can do this update it would be gratefully received.
-
Re: Customer Uploaded Files - List and Download
This mod works ok for me except I noticed that if the customer image is taged as .JPG it fails to pick up the image, stating that smith.JPG does not exist.
If I ise my FTP and change the file name to smith.jpg then tha mod is happy.
Apart from asking customer to ensure the correct naming (I guess) how can I eith enshure Zen labels the file in lower case OR get this mod to accept both??
Have I missed something??
Thanks
-
Re: Customer Uploaded Files - List and Download
-
Re: Customer Uploaded Files - List and Download
Try the solution in post 17 on page 2 in this forum it worked for me with both jpg and JPG file extensions showing up.
-
Re: Customer Uploaded Files - List and Download
Aaaawh!! Dont know how I missed that lol.
Thanks for the pointer... seems to have sorted it nicely.
Thanks
Oh... And I will add my vote for the DELETE button. Then were all happy!
Rizla
-
1 Attachment(s)
Re: Customer Uploaded Files - List and Download
Attached please find a new uploads.php.
I have rearranged the columns to be more logical, given them a border to be more usable and resorted the downloads by the order number instead of the upload ID.
~Melanie
-
Re: Customer Uploaded Files - List and Download
Thank you, the new uploads.php is so much easier to use.
As I manually delete the uploaded files from the images folder every week it does not matter that they cannot be deleted from Admin, but do you have any ideas as to how to delete the names of the uploaded files from the Admin? I currently have 40 pages of them. The only way I have found is to delete all trace of the order from the database.
-
Re: Customer Uploaded Files - List and Download
No, I had thought about looking in to deleted them, but it's really not a big deal anymore, as the array only pulls the max search results which is currently set at 25. So you are only querying the orders on the page you are on... and since the old ones are in the back now....
~Melanie
-
Re: Customer Uploaded Files - List and Download
You are right it is not worth worrying about deleting the references to the files. Uploads in the admin is so much easier to use now and only need to go to first 2 pages to find the files to download. One minor change which I have managed to make for myself is that it is very useful to keep the customers file name included within the downloaded file name. If I need to contact the customer about a problem picture I can give them their file name, the orders I get usually have 5 or 6 photos on each personalised banner.
Thank you for doing this update.
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
mprough
No, I had thought about looking in to deleted them, but it's really not a big deal anymore, as the array only pulls the max search results which is currently set at 25. So you are only querying the orders on the page you are on... and since the old ones are in the back now....
~Melanie
Well I still think it is an important function to be able to delete files and records related to the uploads. Because the upload directory takes up a lot of space if you have a huge amount of uploads on a daily basis and otherwise it can get confusing if you manually go and delete files on the server as to which ones to delete and which ones might not have been processed yet, not to mention the technically challanged operator which might never have ftp'd to the server in their life and relies on being able to point and click within the admin panel.
Not to mention the database filling up with records related to the uploads which over time serve no function anymore once the order is processed.
-
Re: Customer Uploaded Files - List and Download
Manually deleted them in FTP will not make them disappear in the admin... The records is what is displayed in the admin and is has nothing to do with your uploads directory which you should be pruning regularly.
~Melanie
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
mprough
Manually deleted them in FTP will not make them disappear in the admin... The records is what is displayed in the admin and is has nothing to do with your uploads directory which you should be pruning regularly.
~Melanie
Yes understand what you are saying but it doesn't really have anything to do with what I was stating or the reasoning behind it.
-
Re: Customer Uploaded Files - List and Download
Just noticed we have the same problem back again with the file naming..... .jpg v's .JPG
Attempted the mod in post 17 but refused to load.
Any ideas??
Thanks
-
Re: Customer Uploaded Files - List and Download
Anyone know what uploads folder this is reading from?
It looks like admin/uploads
Currently, my uploads buttons upload to images/uploads
How can I change this to upload to admin/uploads?
Thanks,
Clay
-
Re: Customer Uploaded Files - List and Download
I'm looking for a mod that allows customers to upload photo(s) per product, this are photo jewely products is there any relation of uploaded images to individual products or just orders?
If not does anyone know of a modual that can do this??? Thank You
-
Re: Customer Uploaded Files - List and Download
Running v1.3.9
using EasyBiz template
I've installed the Addon and everything appears to be working fine but there is no nav to upload.
Ideal scenario:
1 customer shop/select
2 once the item is selected they are moved to an upload page
3 finish uploading and sent pending approval
4 once approved customer cc processed
i suppose the first thing is to get an upload image menu somewhere, any help to accomplish this is greatly appreciated.
web address:
http://www.preciousgemz.co.nz
thnx again.
-
Re: Customer Uploaded Files - List and Download
1.39 using a zenflavor premium template. I've installed this add-on and all looks fine, uploads is under customers in admin, but when it's clicked it brings you to a page not found. I'm assuming it has to do with the file paths in the template as i've found a few other discrepencies when using other add-ons but I thought i'd ask here before I start playing with the code and really mess things up. :)
Thanks in advance
-
Re: Customer Uploaded Files - List and Download
-
Re: Customer Uploaded Files - List and Download
using 1.3.9h; worked as adveritised. I added the customer's file name back into the download name; although customer may use a crazy name, its a name he knows and will be easier to communicate with him what file he actually sent.
Also, on the case on file type (to download), i removed the die and replaced with application/force-download. This will let me at least download his file of any type. Also, avoids having to synchronized the list of allowed upload files with the list of allowed downloads.
And Delete would be great; how many donuts will it take :) ?
-
Re: Customer Uploaded Files - List and Download
Quote:
I've installed the Addon and everything appears to be working fine but there is no nav to upload.
Ideal scenario:
1 customer shop/select
2 once the item is selected they are moved to an upload page
3 finish uploading and sent pending approval
4 once approved customer cc processed
i suppose the first thing is to get an upload image menu somewhere, any help to accomplish this is greatly appreciated.
Just in case the poster or anyone else is still confused about this, the file upload is a feature of product attributes ("file" type). See the tutorials on attributes for more details.
You will upload the file on the product info page before adding to cart.
-
Re: Customer Uploaded Files - List and Download
No one still has any ideas on how to fix this excellent mod so admin can delete uploads directly from admin panel?
-
Re: Customer Uploaded Files - List and Download
Running 1.3.9
This mod always worked for me until some time agao, always meant to get it sorted but.... Well here I am.
The problem is:
All uploaded images show in 'customer uploads' page ok, all info and numers are ok. BUT.. When I click download, the usual window opens with "Open Save Cancel"
When I click "Save" I get the following error msg: "cannot dowload uploads.php from www.mysite.com"
If I click "Open" then sure enough the correct image opens in a window.
Can't remember when all this started as it used to work fine. I have re-installed several times and double checked the lot. It's got to be something stupid I have overlooked??
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
Rizla
Running 1.3.9
This mod always worked for me until some time agao, always meant to get it sorted but.... Well here I am.
The problem is:
All uploaded images show in 'customer uploads' page ok, all info and numers are ok. BUT.. When I click download, the usual window opens with "Open Save Cancel"
When I click "Save" I get the following error msg: "cannot dowload uploads.php from www.mysite.com"
If I click "Open" then sure enough the correct image opens in a window.
Can't remember when all this started as it used to work fine. I have re-installed several times and double checked the lot. It's got to be something stupid I have overlooked??
I would suspect a hosting change. What version of PHP?
-
Re: Customer Uploaded Files - List and Download
PHP 5.3.10
They did move their serves a while back, maybe I'll fire off a ticket to them?
Thanks
-
Re: Customer Uploaded Files - List and Download
This module may not be PHP 5.3 ready
-
Re: Customer Uploaded Files - List and Download
Oh dear!!
Any idea if it will be?
Thanks
-
Re: Customer Uploaded Files - List and Download
Ok, regarding my download problem:
I contacted my host's who worked away at it for some hours... I have received the following in anyone can throw some light onto a fix?
"I can confirm that download works perfectly in Safari, but not at all in Firefox.
Hence, not a PHP5.3 issue - the error is browser side, not server side. On the server, all works but the code is incorrect for some browsers. Firefox doesn't like it at all, Safari just downloaded the file without any issues to my folder. As a general rule, PHP5.3 issues will stop a page from working in 100% of cases (no exceptions); a server side issue also should affect all browsers equally as the error is on the server before sending the page; but an error that affects browsers differently indicates an issue in how the code is constructed that is sent to the browser (HTML/JS). Given that your code is quite short, could just be an issue with how the HEADER is constructed within uploads.php (last few lines in the file). "
-
Re: Customer Uploaded Files - List and Download
Bump!
So every one else is working ok?
Just trying to narrow my options down....
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
marknew
That problem was when i used the "updated" uploads.php from 3DPeruna. I have gone back to the original uploads.php.
The problem i have now is uploaded jpegs named filename.jpg download correctly but files where the extension is in capitals - EG filename.JPG can't be downloaded. When i click the link it says the file can't be found.
The error message is -
File "/home/newmedia/public_html/photosoncanvas.net.au/images/uploads/54.jpg" does not exist (251)
I have checked an the file is the but any files ending in .JPG aren't found.
Zencart 1.3.9d
Also, is there a way to remove the old files from the download list?
Thanks
I am also getting an error:
File "/home3/spinaweb/public_html/guardsman/images/uploads/37.jpg" does not exist (254)
I have double checked file locations and that the .jpegs are in the uploaded folder, - got to be something simple - PLEASE HELP - greeat plugin just not quite there :) Zen Version 1.5
-
Re: Customer Uploaded Files - List and Download - FIGURED MY PROBLEM
Quote:
Originally Posted by
webmeister
I am also getting an error:
File "/home3/spinaweb/public_html/guardsman/images/uploads/37.jpg" does not exist (254)
I have double checked file locations and that the .jpegs are in the uploaded folder, - got to be something simple - PLEASE HELP - greeat plugin just not quite there :) Zen Version 1.5
I was using images from my Zen cart images folder - once I used images from outside the program it worked great!...
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
webmeister
I am also getting an error:
File "/home3/spinaweb/public_html/guardsman/images/uploads/37.jpg" does not exist (254)
I have double checked file locations and that the .jpegs are in the uploaded folder, - got to be something simple - PLEASE HELP - greeat plugin just not quite there :) Zen Version 1.5
Suspect you need to edit Configuration >> Maximum Values >> Allowed Filename Extensions for uploading to include additional values you may need. Also, remember, on a Linux System uppercase letters are not synonymous with their lowercase counterparts.
~Melanie
-
Re: Customer Uploaded Files - List and Download
Thank Mprough, found out that i cannot use images from my zen cart I need to use images outside of the file structure... thanks
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
webmeister
Thank Mprough, found out that i cannot use images from my zen cart I need to use images outside of the file structure... thanks
Doesn't make any sense. What does "images from my zen cart" have to do with "customer uploaded files" anyway? So using images "outside of the file structure" becomes moot.
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
DrByte
Doesn't make any sense. What does "images from my zen cart" have to do with "customer uploaded files" anyway? So using images "outside of the file structure" becomes moot.
Sorry Doctor for the delayed response:
While experimenting with checking out & uploading a jpeg, I uploaded jpgs that were located in the "images" folder of Zen Cart. When I went to Customers/Uploads & tried to open the uploaded jpeg they would not open at all...(don't remember the error).
While checking out, If I upload files from C:My Pictures I can then go to "Customer-Uploading" & the jpegs uploaded will then open...
-
Re: 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?
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
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?
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
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
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
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
-
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
-
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?
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
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
-
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?
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
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
-
Re: Customer Uploaded Files - List and Download
You was right, it was the filename!
Its all uploaded and working now.
Thanks
-
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
-
Re: Customer Uploaded Files - List and Download
-
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
-
Re: Customer Uploaded Files - List and Download
Does this work with version 1.5.4? I can't get it to work.
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
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:
Code:
$file_extension = strtolower( substr( strrchr( $fileName, '.' ), 1) );
and change it to be like this:
Code:
$file_extension = strtolower( $fext = substr( strrchr( $fileName, '.' ), 1) );
and then around line 249 find:
Code:
$fs_path = DIR_FS_UPLOADS . $index . '.' . $file_extension;
and change it to:
Code:
$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:
Code:
$nfile = 'zc_order' . $oid . '_' . $index . '.' . $file_extension;
and change it to:
Code:
$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!
-
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?
-
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)
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
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
-
Re: Customer Uploaded Files - List and Download
quick fix for v1.4
add global $db; to uploads.php
so that
PHP Code:
function download_file($index, $oid) {
// Look up in the database of upload files, that
looks like
PHP Code:
function download_file($index, $oid) {
global $db;
// Look up in the database of upload files, that
-
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.
-
Re: Customer Uploaded Files - List and Download
did that. added the content to configure.php. except the 2 lines in the readme file dont exist in confgure.php on 1.5.5f. now it almost works but when I click the image link I get this: File "/home/xxxxx/public_html/xxxx/DIR_WS_IMAGESuploads/2.png" does not exist (254)
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
thomaswhiteeagle
did that. added the content to configure.php. except the 2 lines in the readme file dont exist in confgure.php on 1.5.5f. now it almost works but when I click the image link I get this: File "/home/xxxxx/public_html/xxxx/DIR_WS_IMAGESuploads/2.png" does not exist (254)
THAT I was able to get working by changing
PHP Code:
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/')
to
PHP Code:
define('DIR_WS_UPLOADS', images . '/uploads/');
After that, everything worked fine.
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
Design75
quick fix for v1.4
add global $db; to uploads.php
so that
PHP Code:
function download_file($index, $oid) {
// Look up in the database of upload files, that
looks like
PHP Code:
function download_file($index, $oid) {
global $db;
// Look up in the database of upload files, that
Made that change, and everything is golden! Which is wonderful, because this is like, the number 1 add-on I use for our store.
-
Re: Customer Uploaded Files - List and Download
Quote:
Originally Posted by
Lordzoabar
THAT I was able to get working by changing
PHP Code:
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/')
to
PHP Code:
define('DIR_WS_UPLOADS', images . '/uploads/');
After that, everything worked fine.
Perfect. thanks much for the help!
-
Re: Customer Uploaded Files - List and Download
So we've got a second website that we do pretty much the same thing as we do on our primary site, except that it's geared more towards business owners exclusively. It hasn't been updated in a while, just because it really hasn't needed to be, but I was at least wanting to get some of the same modules installed as on our primary. I've got this plugin installed and working perfectly fine, except I have no idea where customer files are actually getting uploaded to, because they are definitely not going to images/uploads. The site (FrameBiz.com) is running on 1.5.4 still, but the uploads SHOULD still be pointing to images/uploads I would think. Where else might they be going, or where would I look to see if a different folder is being pointed to?