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

#   Funny bug in Ajax file custom field

##

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

Less More

- Posts: 88
- Thank you received: 20
-
-

4 years 1 month ago [\#344480](#344480) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  *[Funny bug in Ajax file custom field](/forum/2-general-talk-about-hikashop/904971-funny-bug-in-ajax-file-custom-field#344480 "-- HikaShop version -- : 4.6.1  Hi  I added a custom field to a product of the type: ajax file. I have the field the name: Product Files and the column name: product&#95;files. That column name seems to mess with saving the file in the database.  File is upload to the folder, the product is saved, but the file is not stored in the database in the product&#95;files column. If I create another ajax file field with another name, then it works just fine.  Is product&#95;files a &quot;reserved&quot; name?")* was created by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")*

-- HikaShop version -- : 4.6.1

Hi

I added a custom field to a product of the type: ajax file. I have the field the name: Product Files and the column name: product_files.
That column name seems to mess with saving the file in the database.

File is upload to the folder, the product is saved, but the file is not stored in the database in the product_files column. If I create another ajax file field with another name, then it works just fine.

Is product_files a "reserved" name?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwNDk3MS1mdW5ueS1idWctaW4tYWpheC1maWxlLWN1c3RvbS1maWVsZD90bXBsPW1hcmtkb3du) 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: 86322
- Thank you received: 14280
-
-

4 years 1 month ago [\#344483](#344483) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Funny bug in Ajax file custom field](/forum/2-general-talk-about-hikashop/904971-funny-bug-in-ajax-file-custom-field#344483 "-- HikaShop version -- : 4.6.1  Hi  I added a custom field to a product of the type: ajax file. I have the field the name: Product Files and the column name: product&#95;files. That column name seems to mess with saving the file in the database.  File is upload to the folder, the product is saved, but the file is not stored in the database in the product&#95;files column. If I create another ajax file field with another name, then it works just fine.  Is product&#95;files a &quot;reserved&quot; name?")*

Hi,

Indeed, we use the attribute name product_files internally to process the files of the Images &amp; Files area of the product edit screen.
We'll add it to the list of reserved names to avoid other people having the same issue.
Thanks for your feedback !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwNDk3MS1mdW5ueS1idWctaW4tYWpheC1maWxlLWN1c3RvbS1maWVsZD90bXBsPW1hcmtkb3du) 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.049 seconds

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