UNSOLVED

kartike

updated

15 years ago

K

kartike

18 Posts

0

1616

September 7th, 2011 00:00

File not upload in cloud

Hi,

I am using input tag "type=file" to browse the file in asp.net.

once i browsed using browse button i can get the file name and path using  " Request.Files[Request.Files.Keys[0]]"

File path is like = "C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\DevServer\\10.0\\Linq2sql.zip"

If i pass this filepath in the createobject method,

objectId = upload.CreateObject("C:/Program Files (x86)/Common Files/Microsoft Shared/DevServer/10.0/Linq2sql.zip", acl, null);

i can get the file not found error. What i did wrong?

Please let me know.

  • JasonCwik

    281 Posts

    500

    0

    Posted September 7th, 2011 06:00

    Karthik,

    I don't know too much about ASP.NET, but that sounds like the path to the file on the client system.  You would need to upload the file to the ASP.NET server and then upload to the cloud from there.

  • kartike

    18 Posts

    500

    0

    Posted September 7th, 2011 21:00

    Hi Jason,

    Please find the more details below.

    1. Currently we are uploading the files into the Production server through the FTP.

    2. Now we would like to move the files to Cloud which are uploaded by our Customers through the Website. Is it possible to directly upload the files from     client machine to Cloud Environment?
       Because we don’t have any ASP.NET server to maintain the files. Even though we are not authorized to use those servers.

    If possible can you please point out some examples/samples link.

    Regards,

    Karthik.

  • JasonCwik

    281 Posts

    500

    0

    Posted September 8th, 2011 10:00

    OK, just to further clarify:

    1. You have an existing ASP.NET website
    2. You are not allowed to even temporariliy cache files on the ASP.NET servers for upload to Atmos, so
    3. You want to upload directly from the web page to Atmos

    Correct?

    Traditionally, the HTML

    file upload requires the file to be transmitted to the server using a multipart-encoded POST operation.  We're working on an HTML5/Javascript API that may allow a direct upload, but it may not be supported by all browsers and I don't have a timeline for completion yet.  There will be some strict limitations on how this will work, mostly because the web browsers have strict "sandboxes" that restrict what you can and can't do through Javascript for security reasons.

    Your other options:

    1. Write a Signed Java Applet.  You could embed this in your webpage and have it upload directly to Atmos.
    2. Write a desktop application to do the uploads.  There are no limitations there.