"File Upload URL not provided."
Nickolos16 opened this issue · comments
Hi can anyone provide a clear guidelines on how to implement the file upload using formio, as a newbie user of ngFormio i am having difficulties on how to set up this function , i try to implement this https://github.com/danialfarid/ng-file-upload#server but its still giving me an error also i read this instruction under https://help.form.io/integrations/filestorage/#url it's still not clear for me on how to make the file upload working and how to put a custom URL
can anyone explain or discuss how to set up the File Component in a correct way
PS. I integrate the ngFormio on my own project not a subscriber for now but planning to, for future use of my project
Thank you
tagging you my friend @wag110894
There are a couple things that can go wrong with the file component.
- If you are embedding using the form attribute instead of the src attribute, be sure to set url as well. This is needed so we can build the file upload url checking system.
- Be sure to set the file component Storage to "Url" and the url to where the file should be sent to.
If those don't work, can you send an example form where you are trying to get this working?
Hi randall thanks for response
First under the File Component -> i set the storage as Url see picture below
Second as per instruction to follow the guidelines of how to set up an service if your using C# https://github.com/danialfarid/ng-file-upload#server i follow it and put the Upload Url but i dont know if its correct or i am the one who's wrong its still giving me an error ,
and its always giving me this error whenever i upload it doesn't initialize the Url i put see picture below
When embedding the form, you need to make sure that you provide the url
parameter to the formio
directive which is used to tell the rendered form which form you are pointing to.
<formio form="{....}" url="'https://myproject.form.io/myform'"></formio>
Hi @travist thanks for response
As per your instruction i put my upload URL that is i set on File Components and put the url parameter to my directive , but it seem's not affecting the file upload function i still get the error "File Upload URL not provided" see picture below
but when i click on the upload url service i created it's working see picture below:
base on this #322 there's a bug on the file upload i tried his work around but still got the error
Is there something that i need to configure on my formio ?
Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!