Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jul 2017
    Posts
    2
    Member #
    57069

    Is it possible to allow users to upload photos in a form?

    Ideally I would want to make it possible for users to upload photos in 4 or 5 pre-placed frames (the uploaded photos ideally would be automatically resized to fit the frame) and then add some text.

    I was thinking of forms but all solutions I found allowed placing pics when creating the form but not when filling it.

    Any idea or suggesting greatly appreciated.

    Thanks

  2.  

  3. #2
    Junior Member
    Join Date
    Jul 2017
    Posts
    2
    Member #
    57069
    Forgot to specify I'm using Joomla but would consider other solution

  4. #3
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Platform only matters in terms of how you're going to actually store the image. Joomla should have some way to do that, like an existing meta field for each page/post/whatever.

    My favorite way to load and work with images is through data URIs. JavaScript has an API called FileReader that can read a file, and a method called readAsDataURL that will convert the file's data to a data URI.

    Once you have that, you can use JavaScript to set that as an <img> tag's src attribute, or you can add it to a canvas to manipulate it. You should also be able to store that URI as a string in Joomla's database.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:35 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com