J
JJ_377
How would I use a module to save a file?
I can use the html input (type-file) in a webform to select a file and
then do a saveas on the request object's file.
However, I would like to be able to do this in a module, but the module
doesn't know anything about the request object in the webform.
In otherwords, I would like to pass the filename to a function in a
module and then the file is saved to a local drive by the function.
That way I can reuse the same function in the module to save other
files without rewriting the same code again.
Thank you very much.
I can use the html input (type-file) in a webform to select a file and
then do a saveas on the request object's file.
However, I would like to be able to do this in a module, but the module
doesn't know anything about the request object in the webform.
In otherwords, I would like to pass the filename to a function in a
module and then the file is saved to a local drive by the function.
That way I can reuse the same function in the module to save other
files without rewriting the same code again.
Thank you very much.