[Amazon S3] How to get the filename and type using mobile upload

[Amazon S3] How to get the filename and type using mobile upload

  
Forge Component
(5)
Published on 6 Apr by Formiga
5 votes
Published on 6 Apr by Formiga

Hi, I managed to get the AW S3 Module to work as expected using a Web App.


Having some issues with the mobile use of it - followed the sample tutorial.

I was able to understand the need for a local binary variable - but how to I get the filename and the extension ?

It is either emtpy or ends up as a images.jpg ...


How do access those two fields/metadata during upload from a mobile phone ?

Best regards

Tommy Hägvall


Aha - I noticed it worked different on Iphone and Android. Anroid gave the correct IMG..... name of the image but Iphone always creates a image.jpg file. How can I extract the real filename and file tyoe on the mobile upload ?

Tommy Hägvall wrote:

Aha - I noticed it worked different on Iphone and Android. Anroid gave the correct IMG..... name of the image but Iphone always creates a image.jpg file. How can I extract the real filename and file tyoe on the mobile upload ?

see if this tutorial helps you: https://success.outsystems.com/Documentation/10/Developing_an_Application/Design_UI/Inputs/Upload_Files


Solution

Now I saw my misstake - i did not set the property for filename in the right upload component. I hade both web and mobile apps and had upload components in several screens and then tried to build a block module and put the server code in a server action. Now it is working well - thanks !

Solution