reformat upload end point code
reformat media upload file
fix undefined variable
reformat upload file code
js hook after file upload added
filter added for upload parameters