[Skip to main content](#vessel-content)

#   External image storage

##

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile") Topic Author
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

14 years 6 months ago [\#47363](#47363) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  *[External image storage](/forum/4-how-to/47363-external-image-storage#47363 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")* was created by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")*

We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 6 months ago [\#47549](#47549) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#47549 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

Move your images via FTP under the folder media/com_hikashop/upload and you can then do that by using the import from textarea feature (menu Products-&gt;Import) with that text:

product_code,images
myproduct1,myimage1.jpg
myproduct2,myimage2.jpg
...etc...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile") Topic Author
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

14 years 6 months ago [\#47555](#47555) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  Replied by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#47555 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

Thanks for the reply. But that is still effectively importing them into the system.

I just want to pass the URL where the image already resides and have it display while still on the image server. e.g. I want to pass [ www.imagestore.com/myimage.jpg](http://www.imagestore.com/myimage.jpg) to the product definition.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 6 months ago [\#47738](#47738) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#47738 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

You can use the URL of the images in the CSV files if you import the products via CSV, however, the image won't be used directly. It will be copied to the upload folder of HikaShop so that HikaShop can resize it, etc.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile") Topic Author
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

14 years 6 months ago -  14 years 6 months ago [\#47759](#47759) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  Replied by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#47759 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

Thanks again for the reply Nicolas. It is appreciated.

Surely this is just what path the code which does the conversion uses. Is it possible for you, or someone else, to point me to the file which does the conversion of images into the thumbs displayed?

Last edit: 14 years 6 months ago by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 6 months ago [\#47889](#47889) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#47889 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

It's the file administrator/components/com_hikashop/helpers/image.php

The following user(s) said Thank You: [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile") Topic Author
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

14 years 6 months ago [\#47895](#47895) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  Replied by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#47895 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

Thank you very much Nicolas. Your help is greatly appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[bendraper](/forum/user/6360-bendraper "View bendraper's Profile")**
- [![bendraper's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6360-bendraper "View bendraper's Profile")
- [ Offline](/forum/user/6360-bendraper)

Less More

- Posts: 28
- Thank you received: 2
-
-

14 years 3 months ago [\#57450](#57450) by [bendraper](/forum/user/6360-bendraper "View bendraper's Profile")  Replied by *[bendraper](/forum/user/6360-bendraper "View bendraper's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#57450 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

On a similar line to this topic I would like to have the media/uploads and media/uploads/safe folders stored on an amazon s3 bucket

I've seen the joomlart extension [ www.joomlart.com/joomla/extensions/ja-amazon-s3](http://www.joomlart.com/joomla/extensions/ja-amazon-s3) which I think can acheive my aim, but I wondered if anyone had:
1. any sucess integrating that extension with hikashop; and /or
2. if anyone has any other way of allowing hikashop to use an external storage (other than as described above)

Kind regards

Ben

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 3 months ago [\#57461](#57461) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#57461 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

Since 1.5.7 you can use external storage for files in HikaShop.
Just enter the URL instead of upload the file when you add it to the product.
For images however, it's not possible as the thumbnails have to be generated by HikaShop so the images have to be stored locally.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[bendraper](/forum/user/6360-bendraper "View bendraper's Profile")**
- [![bendraper's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6360-bendraper "View bendraper's Profile")
- [ Offline](/forum/user/6360-bendraper)

Less More

- Posts: 28
- Thank you received: 2
-
-

14 years 3 months ago -  14 years 3 months ago [\#57481](#57481) by [bendraper](/forum/user/6360-bendraper "View bendraper's Profile")  Replied by *[bendraper](/forum/user/6360-bendraper "View bendraper's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#57481 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

yes I've tried that but when I include http:// in the cvs import file it just ignores the whole address, when I don't include http:// then it just doesn't work as it looks for the file locally with a really long address.
I've tried using "" and '' to surround the file statement but neither work

When I manually add the file with http:// then it works like a charm

any thoughts?

p.s.
I've also tried changing the location of the file upload path in the configuation to the root of the external site; I didn't expect this to work and it didn't!

Last edit: 14 years 3 months ago by [bendraper](/forum/user/6360-bendraper "View bendraper's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 3 months ago [\#57485](#57485) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#57485 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

The import system will try to download the files if you put URLs in the CSV.
It won't add the URL in the database.

That's normal that it doesn't work, regardless of the quotes you're using around it.

You would have to edit the file administrator/components/com_hikashop/helpers/import.php and remove that part so that it doesn't do that: Code:

$unset = array(); foreach($product-&gt;files as $k =&gt; $file){ if(substr($file,0,7)=='http://'){ $parts = explode('/',$file); $name = array_pop($parts); if(!file_exists($this-&gt;uploadFolder.$name)){ $data = @file_get_contents($file); if(empty($data) &amp;&amp; !empty($this-&gt;default_file)){ $name = $this-&gt;default_file; }else{ JFile::write($this-&gt;uploadFolder.$name,$data); } } if(filesize($this-&gt;uploadFolder.$name)){ $product-&gt;files[$k] = $name; }else{ $unset[]=$k; } } } if(!empty($unset)){ foreach($unset as $k){ unset($product-&gt;files[$k]); } }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[bendraper](/forum/user/6360-bendraper "View bendraper's Profile")**
- [![bendraper's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6360-bendraper "View bendraper's Profile")
- [ Offline](/forum/user/6360-bendraper)

Less More

- Posts: 28
- Thank you received: 2
-
-

14 years 3 months ago [\#57488](#57488) by [bendraper](/forum/user/6360-bendraper "View bendraper's Profile")  Replied by *[bendraper](/forum/user/6360-bendraper "View bendraper's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#57488 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

Thank you that works perfectly now

Ideally i'd like the file name and the file path to be different, I've removed the uploading part so the section now reads
Code:

$unset = array(); foreach($product-&gt;files as $k =&gt; $file){ if(substr($file,0,7)=='http://'){ $parts = explode('/',$file); $name = array_pop($parts); if(filesize($this-&gt;uploadFolder.$name)){ $product-&gt;files[$k] = $name; }else{ $unset[]=$k; } } } if(!empty($unset)){ foreach($unset as $k){ unset($product-&gt;files[$k]); } }

I can see that $name becomes the file name, but I can't see where $file disappears to and I can't see how either fit with the (and I assume I'm looking at the right function later in the import.php) _insertFiles function

The only reason that I want to do this becuase if the full file path is given as the name then it looks bad on the order form and also allows the customer to see where the files are located - potentially allowing them to access the other files.

Thanks for your help so far

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 3 months ago [\#57548](#57548) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#57548 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

You need to remove the full code there.
Then, in the _insertFiles, you will have to extract the name of the file from the URL and add it in the insert SQL query.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[michaelbentsen](/forum/user/6831-michaelbentsen "View michaelbentsen's Profile")**
- [![michaelbentsen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6831-michaelbentsen "View michaelbentsen's Profile")
- [ Offline](/forum/user/6831-michaelbentsen)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 2 months ago [\#60639](#60639) by [michaelbentsen](/forum/user/6831-michaelbentsen "View michaelbentsen's Profile")  Replied by *[michaelbentsen](/forum/user/6831-michaelbentsen "View michaelbentsen's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#60639 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

I tried to use URLs for images on CSV import, but this does not work. The problem is probably related to the URL and the "name" of the image:

[ myimageserver.com/GetProductImage.aspx?i...ntid=163616359233856](http://myimageserver.com/GetProductImage.aspx?id=3&clientid=163616359233856)

I can see the file is uploaded to the upload folder, and it has the filename "GetProductImage.aspx?id=3&amp;clientid=163616359233856". Everything before the . is used as image name, but I guess .aspx?id=3&amp;clientid=163616359233856 is an unknown file extension when trying to use the image.

Any solution to how this can be solved easily?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 2 months ago [\#60703](#60703) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: External image storage](/forum/4-how-to/47363-external-image-storage#60703 "We already have the images stored in a server. Is there a way to just pass the url of where the images reside, without importing the images into Hikashop?")*

You should some code after the line:
$name = array_pop($parts);

in the import.php file in order to generate a correct file name.

For example:
$name = 'file_'.rand().'.jpg';

That will use a filename file_12354.jpg where 12354 is a random number.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzYzLWV4dGVybmFsLWltYWdlLXN0b3JhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.138 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
