-
AKA [ Paul Bainbridge]
I am getting somewhere. the file is being uploaded to the temp dir. For some reason it is not being moved to the main dir once the check has passed.
PHP Code:
move_uploaded_file($_FILES['Filedata']['tmp_name'], "../../temp/".$_FILES['Filedata']['name']);
$type = exif_imagetype("../../temp/".$_FILES['Filedata']['name']);
if ($type == 1 || $type == 2 || $type == 3) {
rename("../../temp/".$_FILES['Filedata']['name'], "../img/vids/".$_FILES['Filedata']['name']);
} else {
unlink("../../temp/".$_FILES['Filedata']['name']);
}
any ideas?
thanks
-
You can send data to the server with the upload() call by appending parameters to the URL; for example, http://www.myserver.com/upload.cgi?userID=jdoe
though I didn't know how to read this varidble in the php, as $_POST['userID'] or $_FILES
-
AKA [ Paul Bainbridge]
Originally Posted by alon_tz
You can send data to the server with the upload() call by appending parameters to the URL; for example, http://www.myserver.com/upload.cgi?userID=jdoe
though I didn't know how to read this varidble in the php, as $_POST['userID'] or $_FILES
Hi
The problem is with retreiving vars. Not sending vars!
-
sorry, well I dont really have an answer for that i guess, do you happen to know how can I read the posted vars into the php file? with $_POST or $_FILES?
thanks
-a
-
This is a major issue and Macromedia really need to look at this in the next release. I cant believe it was overlooked for this release.
-
i got the answer at the backend forum, $_GET is the function to load the vars in the php, thanks
-a
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|