Configuring Upload Properties At Application / Form Level

Post any suggestions or enhancement requests about the Verj.io platform or this Forum

Moderators: Jon, Steve, Ian, Dave

jnwilliams
Ebase User
Posts: 1
Joined: Wed Mar 06, 2013 1:52 pm
Location: Carmarthen, Wales, UK
Contact:

Configuring Upload Properties At Application / Form Level

#1

Postby jnwilliams » Wed Mar 06, 2013 2:08 pm

form.uploadFileFromBrowser(); uses the global settings in the UFSSetup.properties for Ufs.fileDirectoryName, Ufs.uploadFileTypes and Ufs.maxUploadFileSize.

It would be good if you could set these at the application / form level (i.e.)

You may have a form where we only want a user to upload a jpg, jpeg or gif (Images Only) with a Max upload set at 10MB and specify a specific location for these.

Another form you may only want to allow documents doc, docx and pdf etc.... with a Max size of 5MB and a different directory location.

This will give a lot more control and make form filling more efficient?
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#2

Postby Hovik » Thu Mar 07, 2013 3:57 pm

Thanks for your suggestion.

We will consider it for a future release.
0 x

LKirby
Ebase User
Posts: 37
Joined: Wed Mar 13, 2013 11:33 am
Contact:

#3

Postby LKirby » Tue Mar 26, 2013 2:54 pm

+1 to this.

If we nice if we could customise the file types allowed. Would it be possible in a future release to use something like this?
input type="file" name="file[]" accept="image/*"
0 x

alexmcclune
Ebase User
Posts: 95
Joined: Wed Feb 27, 2013 5:16 pm

#4

Postby alexmcclune » Wed Mar 27, 2013 10:22 am

+1 from me too...

I am just using this and customising at project/form level would be great.
0 x

ehmd
Ebase User
Posts: 53
Joined: Thu Sep 13, 2007 9:02 am
Contact:

#5

Postby ehmd » Wed Mar 27, 2013 1:26 pm

Another +1 from me as well
0 x

User avatar
jig
Ebase User
Posts: 30
Joined: Sun Oct 09, 2011 10:16 am
Location: UK

#6

Postby jig » Wed Mar 27, 2013 4:26 pm

This would be invaluable for us as we run many Ebase applications on a Software as a Service (SaaS) model.

Also, some type of control/config which makes the 'Upload' work on a tablet would be great! (Right now, we are looking at alternative of uploading image/video in iOS/Android without using a native app)

One more vote from us :)
0 x
Regards,
Jignesh

Jignesh Vaducha, MSc, MCA
Mobile: +44 (0) 77 325 47 112
Telephone: +44 (0) 1462 488 311
Email: jignesh@schnellsolutions.com

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#7

Postby Jon » Fri Jul 12, 2013 3:05 pm

Some of these enhancements have been included in V4.5 which is due for release 19th July 2013. The form.uploadFileFromBrowser() method will accept a new options argument. This allows the following to specified for each upload:

1. Target directory
2. Max file size
3. Supported file types
4. MIME types

There are a few caveats with this: the MIME types option affects the file types shown by a browser when the user clicks on the Browse.. button. Different browsers implement this in different ways so it's not completely consistent, some browsers allow additional types to be uploaded and some don't and some (IE) don't support it at all. However, it's still very useful. In contrast, the supported file types option is checked by Ebase on the server and will always be honoured - but unfortunately this list is not shown to the user. Also the association between MIME types and file types is not always obvious.

Unfortunately, it's not possible to support multiple file upload at this point - this is an HTML 5 feature, and not enough browsers support it yet. Hopefully, we can introduce this in the future.

Thanks to all for your suggestions.

Regards
Jon
0 x


Who is online

Users browsing this forum: No registered users and 47 guests