Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MG 5 posts 85 karma points
    Aug 04, 2016 @ 20:13
    MG
    0

    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

  • David Peck 690 posts 1896 karma points c-trib
    Aug 05, 2016 @ 08:10
    David Peck
    100

    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.

  • MG 5 posts 85 karma points
    Aug 08, 2016 @ 12:12
    MG
    0

    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.

  • David Peck 690 posts 1896 karma points c-trib
    Aug 08, 2016 @ 12:18
    David Peck
    0

    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.

  • MG 5 posts 85 karma points
    Aug 08, 2016 @ 12:57
    MG
    0

    Thank you David once again

Please Sign in or register to post replies

Write your reply to:

Draft