Giter VIP home page Giter VIP logo

uploadcare-php's Issues

getFileList($page) not working

The paginator is not working.

$page = 2;
$files = $api->getFileList($page);

An integer can not be passed as an array is expected. I

public function getFileList($options = array()) { … }
Is this an oversight as the documentation states otherwise? Has the latest code been pushed?

constant names

API_TYPE_STORE -> API_TYPE_STORAGE, this is resource, not action.

obsolete code

$url = $this->__getUrl($type, $params);
in API->__preparedRequest is not used and shoud be removed.

Composer no worky

Hey guys,

You need to move in 5.3-5.4/* into 5.3-5.4/Uploadcare/ to make composer function,

Right now, all I get is \Uploadcare\Api not found.

If you like, I can make a PR

ThrottledRequestException won't be thrown

ThrottledRequestException won't be throw since autoloader won't find the class file in the src folder. Also I'd recommend to please ThrottledRequestException.php into src\Excpetions folder and place ThrottledRequestException class into Uploadcare\Exceptions namespace. That would comply with PSR-4.

Copy file doesn't work

Hi,

The copyFile function in the API doesn't work because it uses the 'file_list' type which asks for 'page' and 'limit' params (which by the way should be optional).

To sum:

  1. copyFile function should not use file_list type
  2. file_list type should use 'page' and 'limit' params optionally
  3. in any case, before using 'page' and 'limit' params you should check for their existence (like you do with 'uuid' params in all other types)

Amos

Library doesn't support additional upload parameters

API reference for upload via from_url mentions parameters:

  • save_URL_duplicates
  • check_URL_duplicates

These 2 API parameters are newer included in requests. Maybe it would be a good idea to future proof library by merging all options, passed to fromUrl as second parameter, with $requestData used by Curl.

Ability to extract Cropped Dimensions

Being able to get the cropped dimensions that the User selected (which would be in the URL or the "default_effects" private member) would be a huge feature.

Because the cropped image is not saved. I need a way to parse for this.

Add support for batch file delete/store.

REST API supports storing/deleting files in batches by sending list of UUIDs/URLs to /files/storage/

$ curl -X PUT \
       -H "Content-Type: application/json" \
       -H "Authorization: Uploadcare.Simple demopublickey:demoprivatekey" \
       -d '["21975c81-7f57-4c7a-aef9-acfe28779f78",
            "cbaf2d73-5169-4b2b-a543-496cf2813dff"]' \
       "https://api.uploadcare.com/files/storage/"

we want to add this to PHP lib.

getFile with CDN link don't work properly

Hi,

When I use cropping in the widget, the returned string is the CDN link and not uuid.

Then when I use getFile with that string, the uuid attribute that is saved on the new resource is not the real uuid but the whole CDN, which breaks the copy action.

Thanks,
Amos

Date should be within 0:15:00 of our server time

Laravel app with default UTC timezone set.
getFile($filename) is returning the following error:
Request returned unexpected http code 400. {"detail":"Date should be within 0:15:00 of our server time

Preview operation

Please add preview operation. It seems pretty easy to do but I didn't fully understand the mechanism you'er using in the php code.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.