how to prevent user upload unwanted file?

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 prevent user upload unwanted file?

#1

Postby t4nu » Tue Mar 15, 2016 9:31 am

Hi,
If I want the user to upload just the .docx file, is it possible for me to prevent the user to upload another type file, such as .ppt file? If can, what should I do?
0 x

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

#2

Postby Steve James » Tue Mar 15, 2016 9:32 am

0 x

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

#3

Postby t4nu » Tue Mar 15, 2016 11:03 am

I have tried that. But still cannot prevent user from uploading file with other extention/format.

Seems that I have to add a check if the file already uploaded, then delete it if it is not the required file format/extention.
Steve James wrote:See UploadOptions

http://dev-docs.verj.io/ufs/doc/javadoc ... adOptions)
0 x


Who is online

Users browsing this forum: Bing [Bot] and 23 guests