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

#   Files attached to products problem

##

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

Less More

- Posts: 209
- Thank you received: 18
-
-

15 years 9 months ago [\#6001](#6001) by [JIK](/forum/user/362-jik "View JIK's Profile")  *[Files attached to products problem](/forum/4-how-to/6001-files-attached-to-products-problem#6001 "Hi,  I'm trying to attach a downloadable PDF to each product in my store. The PDF is a printable information booklet and the booklet is the same for each product.  When I attach the booklet using the &quot;Files - Add&quot; area in the product setup, I can browse to the location of the file on my hard drive and it uploads the PDF to the server into my upload files directory. However it seems to make a copy of the PDF and renames it with a unique name. So with 20 products in my store I now have 20 versions of the PDF on my server. If I try to edit the attached file name I get the same upload from my hard drive process.  How can I attach the SAME instance of the file to each product? I think there needs to be the ability to select a file that is already present in the uploaded files directory.  In the meantime the only way I can see how to edit the file pointer is via PHPmyadmin. Is there another way?  cheers!")* was created by *[JIK](/forum/user/362-jik "View JIK's Profile")*

Hi,

I'm trying to attach a downloadable PDF to each product in my store. The PDF is a printable information booklet and the booklet is the same for each product.

When I attach the booklet using the "Files - Add" area in the product setup, I can browse to the location of the file on my hard drive and it uploads the PDF to the server into my upload files directory. However it seems to make a copy of the PDF and renames it with a unique name. So with 20 products in my store I now have 20 versions of the PDF on my server. If I try to edit the attached file name I get the same upload from my hard drive process.

How can I attach the SAME instance of the file to each product? I think there needs to be the ability to select a file that is already present in the uploaded files directory.

In the meantime the only way I can see how to edit the file pointer is via PHPmyadmin. Is there another way?

cheers!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYwMDEtZmlsZXMtYXR0YWNoZWQtdG8tcHJvZHVjdHMtcHJvYmxlbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 9 months ago [\#6017](#6017) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Files attached to products problem](/forum/4-how-to/6001-files-attached-to-products-problem#6017 "Hi,  I'm trying to attach a downloadable PDF to each product in my store. The PDF is a printable information booklet and the booklet is the same for each product.  When I attach the booklet using the &quot;Files - Add&quot; area in the product setup, I can browse to the location of the file on my hard drive and it uploads the PDF to the server into my upload files directory. However it seems to make a copy of the PDF and renames it with a unique name. So with 20 products in my store I now have 20 versions of the PDF on my server. If I try to edit the attached file name I get the same upload from my hard drive process.  How can I attach the SAME instance of the file to each product? I think there needs to be the ability to select a file that is already present in the uploaded files directory.  In the meantime the only way I can see how to edit the file pointer is via PHPmyadmin. Is there another way?  cheers!")*

Hi

You're right. We wanted first to keep it as simple as possible for the user (and for us) so you can't browse your upload directory for now.

If you really want one instance of your file you will have to go in the table hikashop_file and have one entry per product with the same file name, path and type and each file_ref_id will have to be the product_id of your products.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYwMDEtZmlsZXMtYXR0YWNoZWQtdG8tcHJvZHVjdHMtcHJvYmxlbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.044 seconds

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