dcsimg
A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 26 of 26

Thread: flash 8 file upload help returning data?

  1. #21
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,320
    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 == || $type == || $type == 3) {
        
    rename("../../temp/".$_FILES['Filedata']['name'], "../img/vids/".$_FILES['Filedata']['name']);
      } else {
        
    unlink("../../temp/".$_FILES['Filedata']['name']);
      } 
    any ideas?

    thanks
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  2. #22
    Member
    Join Date
    Jul 2004
    Location
    brooklyn. NY
    Posts
    81
    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

  3. #23
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,320
    Quote 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!
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  4. #24
    Member
    Join Date
    Jul 2004
    Location
    brooklyn. NY
    Posts
    81
    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

  5. #25
    swfBB Developer
    Join Date
    Oct 2000
    Posts
    239
    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.

  6. #26
    Member
    Join Date
    Jul 2004
    Location
    brooklyn. NY
    Posts
    81
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center