Can you specify a file type (extension) for the Upload data type?
Is there anyway to specify a file extension for the Upload data type?
For example, currently, I'm using the Upload data type to allow users to upload flash videos. I only want to allow the user to select and upload .flv files using the Upload data type.
I'm not sure if it will work, but you could try and use the "validation" filed on your property. Make a regular expression, that matches .flv filenames, and see if it rejects other types of files.
Thanks for the response.
I've tried adding an flv validation ( ^.+.((flv)|(FLV))$ ) which helps because it won't allow a user to upload a non flash video.
But I was wondering if it's possible to only show flv file types in the media picker. This would improve the user experience, so if a user's selecting a flash file from a folder with 100 items, only 10 of which are flash, the media picker would only show 10 items instead of 100.
Any ideas?
Can you specify a file type (extension) for the Upload data type?
Is there anyway to specify a file extension for the Upload data type?
For example, currently, I'm using the Upload data type to allow users to upload flash videos. I only want to allow the user to select and upload .flv files using the Upload data type.
Thanks
I'm not sure if it will work, but you could try and use the "validation" filed on your property. Make a regular expression, that matches .flv filenames, and see if it rejects other types of files.
Hi Morton,
Thanks for the response.
I've tried adding an flv validation ( ^.+.((flv)|(FLV))$ ) which helps because it won't allow a user to upload a non flash video.
But I was wondering if it's possible to only show flv file types in the media picker. This would improve the user experience, so if a user's selecting a flash file from a folder with 100 items, only 10 of which are flash, the media picker would only show 10 items instead of 100.
Any ideas?
Thanks
Zac
I'd say that you should probably build your own mediapicker datatype for that purpose. I have not seen one that uses that kind of filtering.
That's what I figured. If / when I do, I'll post it up here.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.