dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Restrict Alias file upload in Mac

Hybrid View

  1. #1
    Join Date
    Jan 2014
    Posts
    2

    Restrict Alias file upload in Mac

    Hi All, I am trying to find way to restrict Alias file upload in Mac. Didn't able to find the way...

    User having the option to browse and drag and drop a file for upload. I used html file uploader and javascript API to navigate the selected files and apply the validations. Please help me to solve this !.

    Thanks in advance.
    babu

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,805
    1. I have no idea on what you mean by restrict alias file upload
    2. you do not provide any code or highlight what the problem is in the code you are using or give any indication of your error
    STOP using $ prefix on JavaScript variable names...
    Please remember to wrap any code you have in forum tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  3. #3
    Join Date
    Jan 2014
    Posts
    2
    Hi, Thank you for reply.

    Here is my complete requirement.

    a. Having file upload form with capturing of the browse file and drag&drop feature. ( It allows all mime types of files )
    b. Uploaded file later can be viewed with Brava viewer.

    With this user allows to create a Alias to existing file and upload to the system. With Alias it will allow to view the file.

    Basically when user tries to upload a Alias file, it should reject.

    document.getElementById('files').addEventListener('change', fileSelect, false);

    function fileSelect(event){
    var filesSelected;
    if(event instanceof MouseEvent){
    filesSelected = event.dataTransfer.files
    }
    else{
    filesSelected = event.target.files; // FileList object
    }

    // Here can't able to differentiate the File object of original and Alias to write condition.

    // Looking for solution to identify selected file is a Alias or not, if yes show error message.
    }

    Hope i explained the problem, looking forward for some suggestion. Thanks in advance.

  4. #4
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,805
    When a browser requests a page, the browser information is readily available to you so you can classify what browser is in use.

    If you mean you want the whole file path and not the browser alias, you can not get that kind of access.
    STOP using $ prefix on JavaScript variable names...
    Please remember to wrap any code you have in forum tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles