Resource functions
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions
Share functions
Tab functions
Dash functions

validate_upload_url

Validate a URL supplied in the create_resource or upload_file_by_url API calls.

Requires the URL hostname to be added in the config option $api_upload_urls, for example:

$api_upload_urls = array('resourcespace.com', 'localhost');
Variable Description Data type
$url *
The file URL. 
string

Return values

Returns true if a valid URL is found, false otherwise.