ChooseFile with more options

Post Reply
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

ChooseFile with more options

Post by plantenkennis »

Hello,

I use the ChoosFile function to get a filename:

Code: Select all

ChooseFile( 'Select a photo', 'jpg' )
But is it possible to set more extentions in this function. Something like:

Code: Select all

ChooseFile( 'Selecteer een foto', {'jpg', 'jpeg'} )
This however does not work, now a user can pick any kind of file.
Kind regards,

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: ChooseFile with more options

Post by Antonio Linares »

René,

Please try it this way:

ChooseFile( 'Selecteer een foto', "jpg,jpeg" )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: ChooseFile with more options

Post by plantenkennis »

Hello Antonio,

Yes, perfect. This does the trick.
Kind regards,

René Koot
Post Reply