filestack / filestack-php

Official PHP SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
Apache License 2.0
56 stars 32 forks source link

Uploading Fails using filestack-php #36

Open not-original opened 6 years ago

not-original commented 6 years ago

Installed with Composer

Using the following code, results in: Errored uploading to s3503


require("../../../vendor/autoload.php");
use Filestack\FilestackClient;
use Filestack\Filelink;
use Filestack\FilestackException;

$filepath="../../../Docs/12.spring.clinic.assignments.xlsx";
$client = new FilestackClient('************');
try {
    $filelink = $client->upload($filepath);
    var_dump($filelink);
} catch (FilestackException $e) {
    echo $e->getMessage();
    echo $e->getCode();
}