Copied to clipboard

Flag this post as spam?

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


  • keilo 568 posts 1023 karma points
    Feb 13, 2013 @ 18:12
    keilo
    0

    How to integrate picture upload to contest page

    This looks like an excellent package to make life easier for most.

    Im wondering how one can integrate picture upload to the contest front-end,

    for contestants to upload their picture.

    If You may have any pointers would be greatly appreciated.

    Keilo

  • Sébastien Richer 194 posts 430 karma points
    Jun 26, 2013 @ 23:43
    Sébastien Richer
    0

    Hi Keilo!

    Sorry I must have missed the email notification for you message!

    For file uploads, I think you could use something like fine-uploader or some other library like that to get the async file upload going. Once the file is uploaded you could simply save the image to a specific folder you have somewhere and return the file path back to client side. From there users could submit the contest form and send in that path. Then you would add a column to the contestant table for the "pathToImage" and save the submitted path to the table.

    This is quite straightforward to put it actually! And it's a pretty good idea, I'll consider it for sure next time I get and iteration on this project.

    Ohh and you would also have to update the backoffice grid, maybe with a library like imageresizer to generate thumbnails and target blank links so that your content editors can look through the images.

    If this comes too late and you already got around to do this, please send a link, I'd be very interested in taking a look!

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft