Custom Image Upload - Buy It Now Doesn't Work

Topic summary

Custom image upload on a product page works when using “Add to cart,” but fails when using “Buy It Now.”

  • Observed behavior: With “Buy It Now,” the selected file path shows as “fakepath,” suggesting the file isn’t actually being uploaded/processed.
  • Likely cause implied: The custom upload handling is only tied to the add-to-cart flow and isn’t being triggered in the immediate checkout (“Buy It Now”) flow.

Open question/action needed: How to modify the implementation so the upload is captured and sent properly during “Buy It Now” as well (no solution provided in the post).

Summarized with AI on February 25. AI used: gpt-5.2.

I have added some code to have an image uploader on my product page so that customers can upload images when they want to order something. It works when pressing add to cart, but when choosing ‘Buy It Now’, the files doesn’t seem to be uploaded, it just refers to them as “fakepath”

what should i do?