jquery - How to send the variable to different php while using uplodify -


i want integrate uploadify legacy application.

i not able find way send variable (name of file) current legacy file. (that file has database code store file along other form parameter in common table).

could please tell me how can send name of files being uploaded uplodify legacy php file.

in uploadify, once have filename of uploaded file, can call old code using:

file_get_contents("http://yoursite.com/legacy.php?filename=" . urlencode($filename)); 

and in legacy.php:

if($_files['picture1']['name']){     $filename = $_files['picture1']['name']; }else if(isset($_get['filename'])){     $filename = $_get['filename']; } 

it idea sanity check , make sure $_get['filename'] located in directory you're expecting uploaded files, , isn't "/etc/shadow", since legacy.php accessible outside web.

this isn't best or secure way accomplish want, it's quickest , simplest.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -