transloadit / php-sdk

Transloadit's official PHP SDK

Home Page:https://transloadit.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Method for passing files to be uploaded is deprecated

sjelfull opened this issue · comments

I was testing the SDK on PHP 5.6, and was experiencing that the files wasn't being uploaded, even though fields like file_1, file_2 was passed on with full path names.

Turns out the @path way is deprecated. You have to use the new CURLFile class to pass in files.

Thanks for pointing that our @sjelfull! From your support ticket with @tim-kos I understand you resolved the issue on your end, would you be interested in submitting a PR for this?

Ah, it does seem like this is already fixed here: /pull/12

I was on an old version pulled in through composer a while ago.

Hurrah for spending time on bugs that are already fixed by someone else! 😄

Ah dang!

Ok thanks tho!