support `chunked_upload` and `files_put` with curl PUT method

Upload of the large file by curl PUT method for which it does not depend on the memory of PHP.
Please make this a full if-block. For code readability short if-blocks are not good