Dear buddalasunil999,
can I atleast find the created_date of the original file?
Ajax Uploader doesn't provide this kind of information. Related topic can be found in
http://cutesoft.net/forums/thread/56698.aspx when I select a file, the control will create a .resx file in the temp location. what does this file contain?
The file is same as uploaded file, the only difference is the file name, we add "resx" as the postfix, it is based on security consideration.
The the .resx postfix can help the server to prevent being hack by uploading a script file.
is there anyway to read this file?
Yes, you can read this file.
void Uploader_FileUploaded(object sender, UploaderEventArgs args)
{
Uploader uploader = (Uploader)sender;
InsertMsg("File uploaded! " + args.FileName + ", " + args.FileSize + " bytes.");
//Copys the uploaded file to a new location.
args.CopyTo("~/uploads1/"+args.FileName);
//You can also open the uploaded file's data stream.
byte[] data = new byte[args.FileSize];
using (Stream stream = args.OpenStream())
{
stream.Read(data, 0, data.Length);
}
}
and if the temp location is not available what will this do?
If temp directory is not available, error will be thrown.
can I check for this path existence and if not available I should create on fly.
Yes, you can check whether path is existing.
args.CopyTo("~/uploads1/"+args.FileName);
Before the uploaded files are copied to destination folder, you can check whether the path is existing.
Thank you for asking
Eric@cutesoft.net