Find Jobs
Hire Freelancers

573247 Upload File From Link: PHP 2

N/A

In Progress
Posted almost 12 years ago

N/A

Paid on delivery
I need a little code to upload a file from a link and then treat as a $_FILES['filelink'].. so it can be processed through my script. so the url will be posted and will show as if(!$_FILES['file']){ $file = $_POST['filelink']; } else { $file = $_FILES['file']; } then it needs to be coded here so its ready for the next stage if (!isset($_FILES["file"])) bark("missing form data"); $f = $file; //$_FILES["file"]; $fname = unesc($f["name"]); if (empty($fname)) bark("Empty filename!"); if (eregi("http:", $fname) || eregi("www\.", $fname)) bark("Filename cannot contain a URL!"); $tmpname = $f["tmp_name"]; if (!is_uploaded_file($tmpname)) bark("eek");
Project ID: 2319218

About the project

Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of
5.0
1
Member since Jun 27, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.