I want to create a web page where members (end users) will log in and upload files which later on will be stored in the database. My question is - Is it possible to create a web page for file upload via the front end (not Media Library)? Which is the best way to do it?
Certainly. I suggest you create a Surface Controller rather than a Web Api Controller if you're uploading a file, but either will work. You then just need to write your front end to post the data to it.
Do you mean you want to store the file in the database, rather than creating a Media item in the DB with the file on the disk? If it is the latter then you'll need the Media Service too.
Thanks for the advise David, I appreciate it.
Do you think it is a good idea to try to use Forms with upload buttons, which later could be shown in front end via Macros? I really don`t want to do a lot of coding and this seems like the easiest solution to me, but I am not sure it gonna work.
As long as the files aren't expected to be large, in which case you probably want to upload with a progress bar, then forms will likely meet your requirements.
File upload by members via web site front end
Hi,
I want to create a web page where members (end users) will log in and upload files which later on will be stored in the database. My question is - Is it possible to create a web page for file upload via the front end (not Media Library)? Which is the best way to do it?
Thank you in advance.
Regards, MG
Certainly. I suggest you create a Surface Controller rather than a Web Api Controller if you're uploading a file, but either will work. You then just need to write your front end to post the data to it.
Do you mean you want to store the file in the database, rather than creating a Media item in the DB with the file on the disk? If it is the latter then you'll need the Media Service too.
Hi,
Thanks for the advise David, I appreciate it. Do you think it is a good idea to try to use Forms with upload buttons, which later could be shown in front end via Macros? I really don`t want to do a lot of coding and this seems like the easiest solution to me, but I am not sure it gonna work.
As long as the files aren't expected to be large, in which case you probably want to upload with a progress bar, then forms will likely meet your requirements.
Thank you David once again
is working on a reply...