All type(extensions) of files upload is there?

Last post 11-02-2011, 8:39 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  11-02-2011, 2:19 AM 70840

    All type(extensions) of files upload is there?

    Can i upload all type of files? please let me know.
  •  11-02-2011, 8:39 AM 70904 in reply to 70840

    Re: All type(extensions) of files upload is there?

    HI premf5,
     
    If you didn't set property "SaveDirectory". Please remove property setting "AllowedFileExtensions". Then you can upload all type of files (except the extension which willcause security risks, like asp/php/aspx)
     
    For security reason, if you using property "SaveDirectory", you need to use property "AllowedFileExtensions" to set the extensions for uploader control.  Like
     
    $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.bmp,*.txt,*.zip,*.rar";
     
    Regards,
     
    Ken
View as RSS news feed in XML