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.
Printable View
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.
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.
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,
I just tried the new uploads.php file but it gives an error - zc.orders not found.
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 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:
and change it to be like this:Code:$file_extension = strtolower( substr( strrchr( $fileName, '.' ), 1) );
and then around line 249 find:Code:$file_extension = strtolower( $fext = substr( strrchr( $fileName, '.' ), 1) );
and change it to:Code:$fs_path = DIR_FS_UPLOADS . $index . '.' . $file_extension;
and then (optionally, only if you want to preserve the case of the extension when you download the file) around 256 find:Code:$fs_path = DIR_FS_UPLOADS . $index . '.' . $fext;
and change it to:Code:$nfile = 'zc_order' . $oid . '_' . $index . '.' . $file_extension;
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).Code:$nfile = 'zc_order' . $oid . '_' . $index . '.' . $fext;
there's no delete function on this add on, did anyone tried adding a delete function?
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.
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