Why .resx extension?

Last post 10-01-2009, 8:03 AM by elgoogdev. 6 replies.
Sort Posts: Previous Next
  •  09-29-2009, 3:08 PM 55946

    Why .resx extension?

    Hi,

    I'm new to AjaxUploader.  I'm wondering why it saves the file in .resx extension not the original file extension, like .jpg, .doc etc?  How can I save the file in the TempDirectory with its original filename and file extension?

    Please enlighten me.

    Thanks!
  •  09-29-2009, 9:16 PM 55956 in reply to 55946

    Re: Why .resx extension?

    Hi,
     
    The uploader upload the file to server side temp directory , and add .resx to protected the server.
    (Otherwise the hacker may upload some aspx and run it )
     
    You can copy/move the file , change the file name in the FileUploaded event.
     
    We expect the developer do that job by themselves.
     
    Regards,
    Terry
     
  •  09-29-2009, 10:56 PM 55958 in reply to 55956

    Re: Why .resx extension?

    Hello Terry,

    Thanks for the quick response!  I just thought maybe there's a way for a developer to control/retain the filenames
    when it uploads the file.  The reason why I'm asking is because eventually all the uploaded files will be
    read and display on the web page.

    The move may solve my problem right now, but it'll be two step process (upload and move/copy). 
    My concern is what if for some reason what if the move process fails, 
    I need to delete the uploaded file in temp folder,
    which I don't know if it's possible.

    I hope you could also consider adding a setting that would allow the developers
    to maintain the filenames.

    Thanks!
  •  09-29-2009, 11:21 PM 55959 in reply to 55958

    Re: Why .resx extension?

    Hi,
     
    AjaxUploader will delete all temp files which expire in 5 hours.
     
    So you do not need maintain it.
     
    Once the FileUploaded event is fired,
     
    You can process the file.
     
    while client side showing the 'green mark'
     
    but you need show 'Uploaded , but process failed' message to the user .
     
    Regards,
    Terry
     
     
  •  09-30-2009, 10:19 PM 55996 in reply to 55959

    Re: Why .resx extension?

    Hello,

    Please explain why do Ajax Uploader saves temporary files?  What's the use of those files?  

    Does saving temporary files play important role in uploading?  

    To be honest, I don't see the importance of saving temporary files.  I just want to upload my files and retrieve them when I need them.

    Thanks!
  •  09-30-2009, 11:10 PM 55998 in reply to 55996

    Re: Why .resx extension?

    Hi,
     
    When an user upload a 100MB file, it will take a long time.
     
    So uploader need find a PLACE to store the data, instead of the MEMORY.
     
    The default implementation is the temp-file.
     
    (We also provide a UploaderProvider , so the developer can replace the default implementation)
     
    Regards,
    Terry
  •  10-01-2009, 8:03 AM 56010 in reply to 55998

    Re: Why .resx extension?

    Hello Terry,

    That explains it.  Thanks for the help!


View as RSS news feed in XML