Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Zac 239 posts 541 karma points
    May 13, 2009 @ 07:45
    Zac
    0

    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

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    May 14, 2009 @ 17:24
    Morten Bock
    0

    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.

  • Zac 239 posts 541 karma points
    May 14, 2009 @ 22:01
    Zac
    0

    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

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    May 15, 2009 @ 00:10
    Morten Bock
    0

    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.

  • Zac 239 posts 541 karma points
    May 15, 2009 @ 01:29
    Zac
    0

    That's what I figured. If / when I do, I'll post it up here.

  • 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.

Please Sign in or register to post replies