How To Get An Image From Safe Folder

  • Posts: 108
  • Thank you received: 2
10 years 3 weeks ago #175250

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 2.5.24
-- PHP version -- : 5.4.6
-- Browser(s) name and version -- : FireFox 32.0.3

Hello!

I have a custom field of type image, and i have noticed it is saving the images in a safe folder which is pretty nice ( i don't want to change it).
Now i want to access this photo (not from Hikashop), i have successfully recieved the image name from the database but i cannot show it because of the safe protocol.
I have noticed you use a special url with name that can get the image to be used, i just don't know where do i get that.
I wonder is there a way to use this url to display an image i have from the database that located inside a safe folder or i have to change the folder?

Thank you in advance!

Last edit: 10 years 3 weeks ago by bars92.

Please Log in or Create an account to join the conversation.

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
10 years 3 weeks ago #175262

Hi,

The download URL we use uses the information of the order to see if the current user has the right to access the file or not.
If you're outside HikaShop with your code and don't have access to the data to set in the parameters of the URL, it will be easier to just move the file out of that folder or remove the .htaccess file in that folder.

The following user(s) said Thank You: bars92

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum