Alpha Video Training
Results 1 to 9 of 9

Thread: Uploading multiple images at once

  1. #1
    Member
    Real Name
    Jonathan
    Join Date
    Apr 2010
    Posts
    131

    Default Uploading multiple images at once

    We have a mobile application (product inspection app) where a number of pictures can be taken. Each image is stored as a filename in a table row (MySQL) - a single image per row.
    Is there any way to upload multiple images at once?
    The current method works well - although there could be about 15-20 images required for a single inspection and this requires a few steps per photo.
    If there was a way where the photos are all taken, then a single upload step where all photos can be selected and uploaded at once, this would further reduce time taken.
    I'm aware that the database table structure may not suit this, but open to suggestions?
    Thanks

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,567

    Default Re: Uploading multiple images at once

    Web Mobile App or PhoneGap Build App?
    Alpha build?
    Upload image to where... S3... Alpha Server?
    Last edited by Davidk; 02-10-2019 at 10:20 PM.

  3. #3
    Member
    Real Name
    Jonathan
    Join Date
    Apr 2010
    Posts
    131

    Default Re: Uploading multiple images at once

    It is a web mobile app and images are being uploaded to amazon s3.
    Alpha version 12 v4.5.4.7
    Build 5217

  4. #4
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,567

    Default Re: Uploading multiple images at once

    You could use the Action Javascript "File Upload - Amazone S3 Storage or Alpha Anywhere Server". This lets you...

    Select Multiple files
    Display upload progress
    Name each file via the Action Javascript property "Target object name of Amazon S3"
    Run Javascript when all files are uploads are complete via the Action property "On Upload Complete - All Files". Here you could get the upload file array, convert it to a string and pass it to an XBasic function which would add multiple rows to your SQL table.

  5. #5
    Member
    Real Name
    Jonathan
    Join Date
    Apr 2010
    Posts
    131

    Default Re: Uploading multiple images at once

    That works well - thanks.
    The only thing I can't figure out is how to resize the image before upload - there's the option to do this when uploading a single image, but I don't see it for this action.
    Is there a method to resize the images?

  6. #6
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,567

    Default Re: Uploading multiple images at once

    Specifically, which upload Action are you using for the single image upload? I don't see an S3 Action that allows image sizing.

  7. #7
    Member
    Real Name
    Jonathan
    Join Date
    Apr 2010
    Posts
    131

    Default Re: Uploading multiple images at once

    The single image upload action provides a resize option:
    image_upload_1.png

    The multiple file upload action doesn't:
    image_upload_multiple.png

  8. #8
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,567

    Default Re: Uploading multiple images at once

    Thanks... now I see it... but... the Image Upload Action doesn't offer S3 as an option. I believe the reason there is no resize option is that the files are uploaded client to S3... essentially without Alpha server involvement. The resizing options are available when the Alpha server is involved... and the sizing is done on the server.

  9. #9
    Member
    Real Name
    Sean OKelly
    Join Date
    Sep 2015
    Location
    Charleston, WV
    Posts
    205

    Default Re: Uploading multiple images at once

    You can resize an image on the fly using HTML5 Canvas. This way you can generate any number of images and sizes prior to performing a sync with the server. The benefit is the user will also see the resized images immediately. We are starting to do this with our field applications.

Similar Threads

  1. Anyone else having trouble uploading images?
    By twwtc in forum Forum Usage
    Replies: 2
    Last Post: 01-12-2016, 04:30 PM
  2. Uploading Images question.
    By Keith Hubert in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 08-19-2011, 08:02 AM
  3. Uploading images by customers
    By Garry Flanigan in forum Application Server Version 9 - Web/Browser Applications
    Replies: 2
    Last Post: 05-17-2009, 01:22 PM
  4. uploading images and Changing images
    By valleyboy1303 in forum Application Server Version 8
    Replies: 0
    Last Post: 01-10-2008, 06:00 PM
  5. uploading images on the fly
    By Stephen Barron in forum Alpha Five Version 6
    Replies: 1
    Last Post: 06-14-2005, 03:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •