Loading ...
Sorry, an error occurred while loading the content.

8154Re: [ydn-javascript] Using Connection Manager to upload a file

Expand Messages
  • dav.glass@yahoo.com
    Jan 5, 2007
      Nick --

      AFAIK, as a security measure, most modern browsers will not allow JavaScript to access the file being uploaded & it will not allow you to access the file's properties either..

      A malicious coder could easily gain access to say C:/windows/system/* files 8-)

      Hope that answers your question...


      On a side note: The only way I have seen this done in the past was with a Java Applet... I'm not even sure if Flash can do it (I'm not a flash guy..)
      Dav Glass

      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
      without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
      McDonalds Certified Food Specialist is to fine cuisine +

      ----- Original Message ----
      From: Nick Weavers <nickweavers@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Friday, January 5, 2007 11:34:44 AM
      Subject: [ydn-javascript] Using Connection Manager to upload a file

      When performing a conventional file upload using a form, you can use
      the  MAX_FILE_SIZE named field with a value set to the maximum file
      size permitted for the upload. I'm not sure if this is checked by the
      browser or by the web server. Does the connection manager take any
      notice of this field if it is used to perform a file upload?

      I really want to perform the check at the client side and advise the
      user if their selected file is too large, rather than subjecting them
      to a long and fruitless wait when the upload fails due to a timeout or
      a server side check. I notice javascript seems to have no file I/O or
      tests, so I guess any checking would not be easy.


      Yahoo! Groups Links

      <*> To visit your group on the web, go to:

      <*> Your email settings:
          Individual Email | Traditional

      <*> To change settings online go to:
          (Yahoo! ID required)

      <*> To change settings via email:

      <*> To unsubscribe from this group, send an email to:

      <*> Your use of Yahoo! Groups is subject to:

    • Show all 3 messages in this topic