Page 2 of 9 FirstFirst 1234 ... LastLast
Results 11 to 20 of 84
  1. #11
    Join Date
    May 2007
    Location
    york, pa
    Posts
    98
    Plugin Contributions
    0

    Default 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.

  2. #12
    Join Date
    Feb 2005
    Location
    Syracuse, New York, USA
    Posts
    37
    Plugin Contributions
    1

    Default 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.

  3. #13
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default 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,

  4. #14
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default Re: Customer Uploaded Files - List and Download

    I just tried the new uploads.php file but it gives an error - zc.orders not found.

  5. #15
    Join Date
    Feb 2005
    Location
    Syracuse, New York, USA
    Posts
    37
    Plugin Contributions
    1

    Default Re: Customer Uploaded Files - List and Download

    Quote Originally Posted by marknew View Post
    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?

  6. #16
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default 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
    Last edited by marknew; 1 Dec 2010 at 11:13 PM.

  7. #17
    Join Date
    Feb 2005
    Location
    Syracuse, New York, USA
    Posts
    37
    Plugin Contributions
    1

    Default 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).

  8. #18
    Join Date
    Dec 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Customer Uploaded Files - List and Download

    there's no delete function on this add on, did anyone tried adding a delete function?

  9. #19
    Join Date
    May 2007
    Posts
    92
    Plugin Contributions
    0

    Default 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.

  10. #20
    Join Date
    Jun 2010
    Location
    United Kingdom
    Posts
    24
    Plugin Contributions
    0

    Default 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

 

 
Page 2 of 9 FirstFirst 1234 ... LastLast

Similar Threads

  1. Replies: 9
    Last Post: 9 May 2013, 09:57 PM
  2. CUSTOMER UPLOADED FILES LIST AND DOWNLOAD issue
    By jcwynford in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 14 Dec 2010, 08:40 AM
  3. Where do uploaded customer files go?
    By kcb410 in forum Managing Customers and Orders
    Replies: 4
    Last Post: 22 Jul 2010, 03:13 AM
  4. Customer uploaded files
    By stars62 in forum General Questions
    Replies: 2
    Last Post: 12 Mar 2010, 06:22 PM
  5. How do I set up downloads? Download manager isn't showing my uploaded files
    By durkmusic in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 17 Jul 2009, 12:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR