Well i'm in a bit of a fix, I think my brain died!
I'm looking into saving a remote file (image) onto my server.
I need a way to check and see if the remote file is an image though. In Jaxer I just do:PHP Code:<?php
$file = $_GET["file"];
if($file == "") {
exit("<h1>ERROR!</h1> You left a required field blank!");
}
$image = @file_get_contents($file);
if($image == false) {
exit("<h1>ERROR!</h1> 404. File not found!");
} else {
// Code here
}
fileInfo.contentType.indexOf('image') == 0
Any ideas?





Reply With Quote
