Login for more options
Bug 83446:Please provide access to the file upload information, possible via a function, to make handling uploads easier
Please provide access to the file upload information, possible via a function, to make handling uploads easier. Currently the upload is moved twice, once to a temporary directory to retrieve it's original filename and size, then again to the final destination. Otherwise an invalid file may temporarily be held somewhere you don't want it (possible attack vector).
The information is currently retrievable using form.getPartsArray() but this isn't ideal and since it isn't official there is obviously a chance it could change in future versions. See the link below where I demostrate a function that retrieves this information without moving the file.
|Found In Build||0000|
|Fixed In Build|