Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: remote uploads?

  1. #1
    Regular Coder
    Join Date
    Oct 2003
    Thanked 1 Time in 1 Post

    remote uploads?

    how do u make it so that if someone types an http:// url into a file field and clicks Upload, it will go to the remote file and copy it to my server? but also i want it so that when someone clicks browse in the same file field it will upload the local file to the server.
    Last edited by boeing747fp; 04-04-2004 at 03:05 AM.

  • #2
    Super Moderator
    Join Date
    May 2002
    Perth Australia
    Thanked 101 Times in 99 Posts
    check the size of the uploaded file ($_FILES['fieldname']['size']) ... , if its > 0 then a file has been uploaded , else if $_FILES['fieldname']['name'] is not empty then it should contain your users input (hopefully a url)
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts