how to upload files?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

how to upload files?

#1

Postby t4nu » Thu Dec 17, 2015 12:45 pm

Hi,
Sorry for asking simple things.
Anybody kind enough to tell me how to upload files? The example document would be great.
Thanks in advance for the help.
0 x

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

#2

Postby Jon » Thu Dec 17, 2015 1:33 pm

In the designer click Help > Help Index > search on upload > Working with Files
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Thu Dec 17, 2015 1:48 pm

Thank you very much, Jon.
Jon wrote:In the designer click Help > Help Index > search on upload > Working with Files
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#4

Postby Segi » Thu Dec 17, 2015 11:22 pm

These lines of code should help you get started: replace uploadDir with the local upload directory.

Code: Select all

var opts = new UploadOptions();

opts.directory=uploadDir;
opts.maxFileSize="20M";

form.uploadFileFromBrowser(opts);
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#5

Postby t4nu » Fri Dec 18, 2015 1:26 am

Thanks a lot, Segi
Segi wrote:These lines of code should help you get started: replace uploadDir with the local upload directory.

Code: Select all

var opts = new UploadOptions();

opts.directory=uploadDir;
opts.maxFileSize="20M";

form.uploadFileFromBrowser(opts);
0 x


Who is online

Users browsing this forum: No registered users and 20 guests