Welcome Guest, Not a member yet? Register   Sign In
'upload_path' based on MIME type
#1

[eluser]Unknown[/eluser]
Hello,

is it possible for the 'upload' library to decide, on the fly, where it is going to put the uploaded file, according to its type?
#2

[eluser]Giorgio Nordo[/eluser]
I suppose you can evaluate the file extension of the sent file and then change the value of $config['upload_path']
#3

[eluser]davidbehler[/eluser]
Why not upload all files to a default path and after the upload is done move them according to their mime type?




Theme © iAndrew 2016 - Forum software by © MyBB