Adding a custom file field to a registration form

I have added this input to the registration form.

{{ 'Upload' }}*
is there any possibility to pass the url of the file to URL metafield when user register? now I just can see the name of the file in Note. if I can see the url of that, then I can update the meta field value.

Hi @Sara_apr ,

We cannot pass the URL using the input type file.

First we have to setup a middleware for the file upload and on file upload we will get the URL.

The URL then can be passed in the customer metafield as well as customer notes.

Let me know if you need any assistance.

Thank you

Hi
Thanks for your reply. Can you recommend me a middleware for shopify?
is there any tutorial about it? I am new in shopify

HI @Sara_apr ,

We do have to add the middleware in the server.

Do you have cpanel for it?

As I can’t find any tutorial but I can assist you with the code.

Thank you

No unfortunately my webhost doesn’t have cpanel

Hi @Sara_apr ,

I can host it on my cpanel incase you need that feature.

Thank you

Hey @Sara_apr ! If you are still looking for a solution for this, one option would be something like the Helium Customer Fields app, which lets you create custom registration forms, including adding fields for file uploads. When a file is collected through the form, it will be saved to the app’s database, and a URL reference for the file will also be saved into a metafield on the customer’s account.