0

In product custom option type is File. I allow only png, jpeg, txt, pdf extension.

In place order time when I select PDF, it's work. A custom option also select.

But when we open that file (pub/media/custom_options/quote/n/e/jMvJIA50kksnMXL1gxcC0um5Hm0vL0HA) it displays error.

enter image description here

  • Give pub folder 777 permission and check. – Sweety Masmiya Aug 24 '19 at 11:50
  • no is not permission issue . it has no extension thats why it generate error i just rename with .pdf extension and it open – HaFiz Umer Aug 24 '19 at 12:00
  • @HaFiz Umer Please check updated answer – Shafeel Sha Aug 24 '19 at 12:48
1

I Think the Generated Document has no Proper File Extension

So Please try to add .pdf after file name (in your case the file name should jMvJIA50kksnMXL1gxcC0um5Hm0vL0HA.pdf) then open Document , Also check your code properly add the document extension for fix this issue permanently

ex: your_filename.pdf

Hope this help you , Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.