Customer successfully uploaded image file but I received the link as C:\fakepath......

Customer successfully uploaded image file but I received the link as C:\fakepath......

orga
Visitor
2 0 0

I have googled it and understand that the cause was from customer's side. But is there other way that I could prevent this? 

Replies 8 (8)

CustomFresh
Visitor
1 0 0

Having the same problem, did you find a way to fix it?


@orga wrote:

I have googled it and understand that the cause was from customer's side. But is there other way that I could prevent this? 


 

orga
Visitor
2 0 0



<meta charset="UTF-8" />



No, unfortunately. But I don't get this error often anymore. Maybe 1 of every 10 orders. 






Jan_F
Shopify Partner
34 3 14

If anyone bumps into this in the future, here are 2 things that you might want to try:


- disable any kind of ajax add to cart

- disable dynamic checkout buttons

 

hope that helps 🙂 

Passionate Shopify Developer 🙂
Also teaching a little Theme Development on my YouTube channel for free
- - >Let's Build Shopify
Albert_OMGFML
Visitor
1 0 1

I actually used your Youtube video on adding the Upload file box, adding checkboxes, and coding tweaks to my theme. I loved watching your videos and I'm not experienced at coding, you made it easy so thank you for that.

 

I am having the same issue above and cannot see the customer's image. I have no dynamic checkout buttons or ajax cart. 

 

Help is appreciated. Thank you!

carloteran
Shopify Partner
3 0 0

Were you able to fix this issue? I am also getting the \fakepath on order confirmation

Imogen
Shopify Staff
2045 226 393

Hi there, @carloteran. Thanks for taking the time to follow up on this older thread! Are you able to provide us with some additional context around your request for support here? Are you using a third party app to allow customers to upload images to your store, and you're seeing this error in relation to those images? The more context you can provide us, the better folks here in the Community can assist you!

Imogen | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

carloteran
Shopify Partner
3 0 0

Yes, I added a custom field on some of my products with the following liquid snipped

<div class="form__upload-section">

<label class="form__label" for="imagen">Fotografía por Ilustrar</label>

<input required class="product-form__input" id="imagen" type="file" name="properties[Imagen]" form="product-form-{{section.id}}">
</div>

It is working properly on the cart, and checkout (I can click on the uploaded image).

But on the order confirmation email, and when I review the order it appears with a text that starts with C:\fakepath\inbound and I cant retrieve the image uplaoded by my customers.

Imogen
Shopify Staff
2045 226 393

Shopify Support Staff are not trained on coding, so I wouldn't be able to advise on why this issue is appearing. As this issue appears to be related to custom coding you've added to your store, it would likely be best to create a new topic here in the community asking for support with this issue so that other members of the community that are versed in code can be made aware of your question, and have the chance to lend a hand with helping you tweak your coding.

Imogen | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog