Page 8 of 9 FirstFirst ... 6789 LastLast
Results 71 to 80 of 84
  1. #71
    Join Date
    Jan 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Customer Uploaded Files - List and Download

    Anyone??

  2. #72
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,014
    Plugin Contributions
    61

    Default 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. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  3. #73
    Join Date
    Dec 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: Customer Uploaded Files - List and Download

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

  4. #74
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: Customer Uploaded Files - List and Download

    Quote Originally Posted by decartwr View Post
    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!

  5. #75
    Join Date
    May 2007
    Posts
    92
    Plugin Contributions
    0

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

  6. #76
    Join Date
    Nov 2017
    Location
    Athens, Georgia, USA
    Posts
    99
    Plugin Contributions
    0

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

  7. #77
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Customer Uploaded Files - List and Download

    Quote Originally Posted by Lordzoabar View Post
    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
    Last edited by Design75; 16 Oct 2018 at 10:28 PM.

  8. #78
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default 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 

  9. #79
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

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

  10. #80
    Join Date
    May 2007
    Posts
    92
    Plugin Contributions
    0

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

 

 
Page 8 of 9 FirstFirst ... 6789 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