I have created one custom extension that creates one grid using UI component so now, on this create one control file upload type, and using this control I want to upload one PDF file and save it on the var directory.

I am able to upload the image but the PDF file did not upload on the var directory and did not show its control.

Anyone know, how to do this?

  • it is require for your pdf file save in var directory. i am said to you save in pub/media directory Jan 22 at 10:00
  • Add here the code whatever you have tried for that. Jan 23 at 7:31


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.