-
-
Notifications
You must be signed in to change notification settings - Fork 487
downloadFile: downloading from another resource #945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downloadFile: downloading from another resource #945
Conversation
@ccw808 — if I recall correctly, you once mentioned that you were unhappy with |
Resources for testing. Note from admin: please try to upload files directly. Thanks! resources.zip |
I need a more flexible and convenient tool for downloading files. Now I have to use exports for this, but I don't see that this is a good way. Using |
Any updates? |
Why dont you use fetchRemote ? I recently implemented abortRemoteRequest and getRemoteRequestInfo which both can handle downloads pretty well. |
fetchRemote don't math CRC hash. Also, downloadFile use specific HTTP server from mtaserver.conf and don't use ACL right (function is safe). |
Looks good to me |
Fix issue #711
Event onClientFileDownloadComplete has parameter requestResource: resource that called downloadFile. The source of this event is the root element of the resource that download file.