uploadcare / uploadcare-php Goto Github PK
View Code? Open in Web Editor NEWPHP API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
Home Page: https://uploadcare.com
PHP API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
Home Page: https://uploadcare.com
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?
API_TYPE_STORE -> API_TYPE_STORAGE, this is resource, not action.
$url = $this->__getUrl($type, $params);
in API->__preparedRequest is not used and shoud be removed.
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
Hello Team,
When I try to get group files then it will give me below screenshot mention error.
http://prntscr.com/n4zozq
could you please give me solution for it?
Add user-agent that lib sends to us to identify itself.
Closes #26?
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.
When I use $group->getFiles(), I got this error
FatalErrorException in Group.php line 150:
Call to undefined method stdClass::getUuid()
How to fix it, thanks
For now deprecated /status/
is used:
https://github.com/uploadcare/uploadcare-php/blob/master/src/Uploadcare/Uploader.php#L40
The default behaviour should be not sending the param at all.
Now we're sending "${default}" which can override custom pattern configured for the target.
I don't think this variable is used anywhere. There are few places using a local $operations variable, but not the class one.
Amos
Group
constructor should accept URL as well as UUID, just like File
does
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:
Amos
evaluate and try to use
Hi,
we are having issue when trying to upload linkedin image like :
https://media.licdn.com/mpr/mprx/0_035CG7R8of23xiBUdkZTQc9iEAuHoTMjRFZ5BlBQoGTDoSsgZFZTQzELVf3Do7c-srM3KVI8d68DHKRtfEqDzNwQY68SHKwOYEq887B6IpAkHFVBYaXTogmza-
This throws an UUID not found
exception. The regex does not have tests, so it's hard to understand what it does/should do.
Any hints?
Thanks
Всю информацию по тому как это сделать можно получить на официальном сайте http://getcomposer.org/
Widget supports secure uploads. We can add a helper to the library to generate that signature properly.
API reference for upload via from_url mentions parameters:
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.
@homm do we have docs online for this?
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.
I can't seem to find how to set the filename for the uploaded file using this library? Using the API it's possible, but not using this package it seems..
Планируется ли реализовывать настройку качества изображения через библиотеку и других параметров CDN?
Would be nice to use the getScriptTag()
to build a script tag without jquery included.
Add some loader.php
file which will require_once all files. This will be helpful for users without Composer.
https://uploadcare.com/documentation/rest/#files-post
PHP lib has to support
I'd suggest leaving copyFile
as is, deprecate it and create two methods that are logically differentm although API endpoint is the same: createLocalCopy
, createRemoteCopy
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.
It also ignores files modifiers.
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
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
The widget version is currently at
private $version = '0.17.2';
The docs (https://uploadcare.com/documentation/javascript_api/) tell me to use 0.18.0
I was thinking to get the script url from the package, but if that one lacks behind, I might as well keep updating it myself =D
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!
Is there a way to pass an aspect ratio and minimum width to the cropper so the result will be valid regardless to user actions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.