Commit graph

78 commits

Author SHA1 Message Date
David Wakelin
4215f7ab74 Fix to issue template 2021-08-05 09:39:54 +01:00
David Wakelin
5098643b77 Added issues templates 2021-08-05 09:38:23 +01:00
Devang Srivastava
66b8d1f72a
Added info on params option for upload() 2021-08-04 23:59:03 +05:30
Miro
627ce8a867
Allows for object parameters be set on text upload (#55)
The default ContentType is 'application/octet-stream' which forces files to be downloaded instead of opened by the browser. 
Setting the ContentType to match the file mime type takes care of it.

//Example
$my_space->upload( 'world', "hello.txt", "public", array('ContentType' => 'text/plain'));
$my_space->upload( $imageBlob, "happy.jpg", "public", array('ContentType' => 'image/jpeg'));

//Other Uses
array('CacheControl' => 'max-age=60', 'ContentEncoding' => 'gzip');

//Source
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html
2021-08-04 23:39:07 +05:30
Bakr Alsharif
39063d7831
Allow uploading files from URL (#56)
When uploading files from a URL, and if the server closes the connection directly after sending the file, then the resource will be invalid and an exception will be thrown when trying to close it. The supposed fix is to check if the resource is valid.
2021-08-04 23:27:32 +05:30
Devang Srivastava
1e94b00b13
Update README.md 2021-08-04 22:34:23 +05:30
Àlex A
fbf764f4fb
Feature/upgrade guzzle version (#57) 2021-08-04 22:25:21 +05:30
Devang Srivastava
28fbd13ef6
Update README.md 2020-09-28 17:42:22 +05:30
Devang Srivastava
1b54b35f52 Fixed PHP 5 list issue (#47) 2020-09-28 17:31:29 +05:30
Devang Srivastava
57585a9e0b Updated README 2020-09-28 16:18:56 +05:30
Devang Srivastava
e6d7753dc8 v2: Updates
* Simplifies & beautifies everything
* Introduces a new Class system.
* Errors are defaulted to AWS's handler.
* New function names & more efficient handling.
* Should fix a majority of the errors.

Please read the README for more!
2020-09-28 15:32:51 +05:30
Devang Srivastava
ad0726e41e
Merge pull request #27 from Abdelhady/patch-2
Warning about forward slash for paths
2019-06-05 02:07:39 +05:30
Devang Srivastava
c9bfe5f30a
Merge pull request #31 from bilaltas/master
Recursive option added for deleting folder objects
2019-06-05 02:06:13 +05:30
Bilal TAS
267ba3e4a6 Recursive option added for deleting folder objects 2019-06-03 08:52:35 +03:00
Abdelhady Muhammad
3b86191846
Warning about forward slash for paths
Just adding a warning based on your response to this issue https://github.com/SociallyDev/Spaces-API/issues/6 , 
I know you probably tried the filter you talked about because I didn't get the exception when using `UploadDirectory()`, but then I got the exception when using `MakePublic()`, so I thought it would be safer for everyone to warn them about that `SignatureDoesNotMatch` exception
2019-04-09 14:18:32 +02:00
Devang Srivastava
12b4f6a627
Merge pull request #26 from abdelhady/patch-1
Composer installation
2019-04-09 03:27:56 +05:30
Abdel Hady Muhammad
ed901b6ae9
Composer installation
Based on the discussion on this issue https://github.com/SociallyDev/Spaces-API/issues/2
2019-04-08 16:56:55 +02:00
Devang Srivastava
35f2e15d1d
Merge pull request #19 from markruys/master
Suppress warning in case a blob is uploaded
2018-11-23 10:39:28 +05:30
Devang Srivastava
dd00ef5cb0
Merge pull request #20 from alessandroaussems/patch-1
Add signature_version to SetSpace
2018-11-23 10:38:33 +05:30
Alessandro Aussems
8e68a5c676
Add signature_version to SetSpace
I was using this package and I discovered that I couldn't create a new space on DigitalOcean. I kept getting the "XAmzContentSHA256Mismatch" error. Until i added this line. This fixes the issue.
2018-11-21 15:36:26 +01:00
Mark Ruys
8605232e87 Suppress warning in case a blob is uploaded 2018-11-13 15:09:57 +01:00
Dev Ang
22880123ef
Merge pull request #14 from markruys/master
Support content type for UploadFile()
2018-09-28 11:55:57 +05:30
Mark Ruys
0addc2cf7b Support content type for UploadFile(). 2018-09-15 22:15:14 +02:00
Mark Ruys
6301cb1adb More compact CreateTemporaryURL() implementation. 2018-09-15 22:13:54 +02:00
Dev Ang
d46e386cbe
Merge pull request #13 from fossabot/master
Add license scan report and status
2018-08-01 02:33:55 +05:30
fossabot
c752f72550 Add license scan report and status
Signed-off-by: fossabot <badges@fossa.io>
2018-07-31 13:42:35 -07:00
Dev Ang
879d5e399a
Merge pull request #12 from richellyitalo/patch-1
Close file after upload ran
2018-07-27 00:14:33 +05:30
Richelly Italo
9b8e03f7a8
Close file after Upload ran
I saw here the need to delete the file and because it was already open (fopen) inside the library, exclusion was not allowed.
Now always closing (fclose) the file, this is possible.
This is most often used when you want to delete a temporary file after uploading.
2018-07-26 15:40:47 -03:00
Dev Ang
9fb77c5f2f
Fixed issue with creating spaces 2018-07-16 05:57:33 +05:30
Devang Srivastava
0fe3d86781
Merge pull request #9 from AndreyNazarchuk/patch-1
Allow for upload/download from/to memory
2018-06-13 08:33:26 +05:30
andynazay153
36b4d3005f
Oops
Forgot to test changes in your codebase lol
2018-06-12 19:52:19 -07:00
andynazay153
88c6b54b52
Allow for upload/download from/to memory
Useful if files are accessed rarely and should not be saved to avoid I/O bottleneck
2018-06-12 19:46:33 -07:00
Devang Srivastava
26d1b68f84
Fixed no AWS class bug
-> Corrected the file name which caused the AWS class file to not load.
-> Standardized GetError()
2018-03-03 13:32:49 +05:30
Devang Srivastava
563e984fdd
Update composer.json 2018-02-07 21:01:20 +05:30
Devang Srivastava
b5e484cf6c
Fixed Packagist Bug 2018-02-07 21:00:28 +05:30
Devang Srivastava
b6d382371c
Added Composer integration 2018-02-03 23:11:37 +05:30
Devang Srivastava
2c73f816cc
Added composer.json 2018-02-03 23:07:53 +05:30
Devang Srivastava
bc8593a9e9
Added support for different AWS SDK loading methods 2018-02-03 23:06:03 +05:30
Devang Srivastava
1d5b8b9dc8
Delete composer.json 2018-02-03 22:50:51 +05:30
Devang Srivastava
34bf52f253
Added composer.json 2018-02-03 22:47:29 +05:30
Devang Srivastava
789eacc54e
Updated examples with new function names 2018-02-03 22:32:25 +05:30
Devang Srivastava
8e19fb0871
Updated examples with new function names. 2018-02-03 22:31:20 +05:30
Devang Srivastava
d8ff37a3e6
Added Descriptions, Standardized Names & More!
-> All functions now have a description.
-> All functions now have the same name format (ExampleFunctionName()).
-> Better error handling.
-> ListObjects() now can also list only the contents of a folder.
-> Fixed a result bug with UploadDirectory().
2018-02-03 22:26:59 +05:30
Devang Srivastava
d22328ffd2
Added information about new functions.
Added examples of:
1) makePublic()
2) makePrivate()
3) Error Handling

Also updated uploadFile() example to show the new privacy option.
2018-01-03 23:51:27 +05:30
Devang Srivastava
2557aef44f Update 1: New functions, Error Handling, Unix Time & More
This is the first update!
-> Two new functions allow for easily making files public or private.
-> Files' public or private status can now be set while uploading.
-> Added error handling capabilities.
-> All time values are automatically converted to Unix time.
-> Result objects are automatically converted to arrays.
-> Fixed a bug with ACLs where a different client was being called.
-> Fixed a bug with file uploads where save as was not working.
2018-01-03 23:37:15 +05:30
Devang Srivastava
3c5b9c790e
Update README.md 2017-12-08 06:40:22 +05:30
Devang Srivastava
1d85ccec9e
Update README.md 2017-12-07 23:01:25 +05:30
Devang Srivastava
09eb183b21
Update README.md 2017-12-07 22:51:14 +05:30
Devang Srivastava
4d9cc90fc7
Update README.md 2017-12-07 22:50:38 +05:30
Devang Srivastava
b9c8e583fb
Update README.md 2017-12-07 22:38:12 +05:30