Announcement

Collapse
No announcement yet.

assign "Extensions to allow" Attribute to a document field

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • assign "Extensions to allow" Attribute to a document field

    Is there a way to access to a document field and assign "Extensions to allow" Attribute?

    I have try do it like this

    In field Attributes:
    I have set "Extensions to allow" to {myExt}
    In form onload event :
    {myExt}=”txt;.txt” ;

    but it gives error message “invalid file type” when i try to upload a txt file.

  • #2
    What you might try (as I think you are using a file upload) is to set a global variable in the 'extensions to allow' field, i.e. [myext].
    Then set the global to your extensions [myext]='txt;pdf';

    This assignment needs to be done before using the field so an onscriptinit would do.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      there is such option in the field setting itself!

      Comment


      • #4
        Yes there is. Just choose the right fieldtype. (upload)
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment

        Working...
        X