Post by billhobbs » Tue Jun 30, 2020 2:09 am

I have a store where the customer uploads an image to be printed. I've added the upload file button and it appears that it uploads the file and adds a string of characters for security.

The problem is when I look at the customer order details it shows the name of the uploaded file and a link to the file, but the link doesn't work.
Example: I uploaded an image called Hulk.jpg and the image was uploaded into the storage/upload folder. I see the file now called Hulk.jpg.p8MzfgdB06xcxxfrK11gFbepU21onOqG. so far so good.

When I login to the admin and view the order details. There is the file Hulk.jpg named and as a link.

I click Hulk.jpg and here is the error I get: Error: Could not find file /home/artisanart/public_html/store/system/storage/upload/Hulk.jpg.p8MzfgdB06xcxxfrK11gFbepU21onOqG!

The path looks mostly right and the file name looks fine except there is an ! at the end.

Any help is greatly appreciated

New member

Posts

Joined
Fri Feb 24, 2017 3:54 am

Post by billhobbs » Tue Jun 30, 2020 2:30 am

I just noticed that the link path is wrong. The path should not have /system/ in it. How can I change this?

New member

Posts

Joined
Fri Feb 24, 2017 3:54 am

Post by johnp » Tue Jun 30, 2020 6:43 am

Did you install an extension to get the customer upload facility?

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by billhobbs » Wed Jul 01, 2020 6:00 am

I was able to figure out the problem.

New member

Posts

Joined
Fri Feb 24, 2017 3:54 am

Post by OSWorX » Wed Jul 01, 2020 1:13 pm

billhobbs wrote:
Wed Jul 01, 2020 6:00 am
I was able to figure out the problem.
And?
Would you be so "nice" and share your experience with us dummies?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by billhobbs » Thu Jul 02, 2020 3:28 am

The problem was in the config file. The path was wrong. I changed it to the right path and it found the files correctly.

New member

Posts

Joined
Fri Feb 24, 2017 3:54 am
Who is online

Users browsing this forum: No registered users and 27 guests