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

Feature/fs 980 multiparts upload #19

Closed hueyl77 closed 7 years ago

hueyl77 commented 7 years ago
  1. Modified upload() function to use multipart uploads at endpoint https://upload.filestackapi.com

  2. You can tweak the multipart chunk size and number of concurrent jobs by modifying:

FilestackConfig::UPLOAD_CHUNK_SIZE FilestackConfig::UPLOAD_CONCURRENT_JOBS

  1. Got rid of all the attribute checks in FilestackConfig. We'll just rely on error messages from api instead for invalid attributes, no need to maintain another json reference.

  2. Got rid of createUrl() function in FilestackConfig. It is unnecessary, the function calls will build the URLs themselves.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.1%) to 99.861% when pulling b34a7b5cc128cbbf848a50c7cdeb77735bf1bc9b on feature/FS-980-multiparts-upload into 4458b5de2105c9243e3d8c4498fbc3aa18690cc7 on develop.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 35258983a2cbbd7ea1901dc55df1b9692539079d on feature/FS-980-multiparts-upload into 4458b5de2105c9243e3d8c4498fbc3aa18690cc7 on develop.