AjaxUploader

Last post 05-05-2010, 11:45 AM by cutechat. 5 replies.
Sort Posts: Previous Next
  •  05-01-2010, 8:36 PM 60586

    AjaxUploader

    With Manual Upload, is there any way to send simple string data with the uploader from client to the server ?
  •  05-02-2010, 8:38 PM 60623 in reply to 60586

    Re: AjaxUploader

    hassan,
     
    If it's a simple string data, you can use hidden field to send data from client side to the server.
     
    Did I answer your question?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-04-2010, 12:02 AM 60654 in reply to 60586

    Re: AjaxUploader

    Hi,
     
    This sample tells you how to pass data for each file :
     
     
    Regards,
    Terry
     
  •  05-04-2010, 5:06 AM 60665 in reply to 60654

    Re: AjaxUploader

    Thanks for your reply.
    We are using the uploader in an MVC app and we are uploading 1 file at a time. Is the simplest way to just use a hidden field? if so which is the most appropriate event of the uploader we should we use to trigger the storage in the hidden field ?
     
    Many Thanks
  •  05-05-2010, 11:45 AM 60743 in reply to 60665

    Re: AjaxUploader

    Hi,
     
    You need understand the steps how the uploader works for MVC
     
    The uploader will make a GUID for each file, and upload it to server at first.
     
    After the file data be uploaded , it's a temp file on server side.
     
    You can get the GUID on client side , and then you can send the GUID and your custom data to the server side via submitting the form.
     
    At server side, you can use the mvcuploader.GetUploadedFile(guid) to get the temp file.
     
    By the way , did you check our samples for the MVC ?
     
    Regards,
    Terry
     
View as RSS news feed in XML