I would like to upload a file (which I can do now) and have the
created & modified dates and times remain the same as the original
files. The files have the time and date of the upload.
When you upload a file, you aren't actually uploading a file. You are
just sending a bunch of bytes associated with a name. The browser does
not send any metadata about the file like create/modification date/
time. Some browsers send the full path to the file, some send only the
filename. There is no established standard for file uploads. In any
case, Active4D has to reconstruct the file on the server from the
uploaded data. That's why it has the upload date/time.
Unfortunately there is no way I am aware of to capture any metadata
about uploaded files in Javascript. Javascript does not give the user
direct access to the local filesystem (for security reasons). However
you can do it using Flash's FileReference:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/FileReference.html
You would have to create a file upload widget in Flash which posts the
file metadata along with the file.
Kind regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoy.org
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/