Guest Posted February 23, 2007 Share Posted February 23, 2007 I want to know if it is possible to upload a file and send it to a function and how can i do that. I want to send $_FILES['image']['tmp_name']['0'] to function uploadimage(); Link to comment https://forums.phpfreaks.com/topic/39802-solved-file-upload-to-function/ Share on other sites More sharing options...
Jessica Posted February 23, 2007 Share Posted February 23, 2007 It's just a variable, you use it like any other. uploadImage($_FILES['image']['tmp_name']['0']); function uploadImage($file){ print $file; } Link to comment https://forums.phpfreaks.com/topic/39802-solved-file-upload-to-function/#findComment-192222 Share on other sites More sharing options...
Guest Posted February 23, 2007 Share Posted February 23, 2007 Ok thank you. Link to comment https://forums.phpfreaks.com/topic/39802-solved-file-upload-to-function/#findComment-192224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.