How to modify code for multiple image upload on product page?

Topic summary

A store owner implementing print-on-demand personalized products needs help with a custom image upload feature on product pages.

Current Issue:

  • Code allows customers to select multiple images (up to 6)
  • Only one image saves and appears in the order details
  • Other selected images are lost

Technical Context:

  • Using custom code added to product form
  • Images stored via Shopify properties field
  • Code includes file input with multiple attribute and validation

Status: The discussion remains open with no solution provided yet. The poster has shared their implementation code (which appears partially corrupted/reversed in the post) and is seeking assistance to modify it so all uploaded images are captured and visible in orders.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Hello,

I need on my store image upload because I do print on demand personalised prducts. I added code from internet where I can as a coustomer add picutres which I want on the product. My problem is that I can choose multiple photos, but only one is saved and I can only see one in the orders page. Can someone help me to make it so all the photos client add will be shown?

My code:

*Vyberte své fotky (Maximálně 6 fotek)