1
0
mirror of https://github.com/SociallyDev/Spaces-API.git synced 2025-03-12 05:35:22 -07:00

101 Commits

Author SHA1 Message Date
David Wakelin
c52d22a70e Allowed passing validation flag to Space::file() 3.6.0 2022-11-11 09:55:47 +00:00
dependabot[bot]
3a32727c28 Bump guzzlehttp/guzzle from 7.4.3 to 7.4.5
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 7.4.3 to 7.4.5.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/7.4.3...7.4.5)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-28 22:02:32 +01:00
dependabot[bot]
e9cdacc684 Bump guzzlehttp/guzzle from 7.4.2 to 7.4.3
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 7.4.2 to 7.4.3.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/7.4.2...7.4.3)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-26 07:30:22 +01:00
David Wakelin
26d6b83356 Updated version numbers in github bug report template 3.5.0 2022-03-30 11:27:01 +01:00
David Wakelin
6d365b0f6a Bumped dependencies and released new minor version 3.5.0 up from 3.4.0 2022-03-30 11:25:19 +01:00
David Wakelin
de48ddb481 Added extra test assertion for Space::uploadFile mimeType argument
Added extra parameters for `Space::uploadFile` to docs
2022-03-30 11:21:42 +01:00
David Wakelin
f1adeb7c07
Merge pull request from juhchamp/master
Add `mimetype` and `privacy` option to `uploadFile` method of `Space`
2022-03-30 11:13:53 +01:00
Juh Champ
dc5dc27ff3 uploadFile method of Space class updated and testCanUploadFileWithMimeType method added to SpaceTest. 2022-03-23 16:58:37 -03:00
Juh Champ
b7d1a40e70 The uploadFile method of Space class updated 2022-03-05 01:52:04 -03:00
David Wakelin
d7f0b36dc1 Moved files now retain the current Object 3.4.0 2022-02-09 09:01:21 +00:00
David Wakelin
a2bb0f4129 Minor version bump 2022-02-08 18:17:19 +00:00
David Wakelin
591d0be758 Public perms on file copy/move will now retain the current value 2022-02-08 18:16:12 +00:00
David Wakelin
6b438e0b9a Added a file move method 2022-02-08 18:13:17 +00:00
David Wakelin
bdd06aa0b7 Updated tests to use random (md5 of unixtime) space names 2022-02-08 18:07:13 +00:00
David Wakelin
c0b1a43141 Dependency updates (minor versions only) 2022-02-08 17:26:51 +00:00
David Wakelin
7c915822bf Added privacy setting to text upload 3.3.0 2021-10-04 09:35:42 +01:00
David Wakelin
8ff8498a22 Version bump 3.2.0 2021-08-17 12:43:20 +01:00
David Wakelin
aa5450538b Made file and space existence validation optional 2021-08-17 12:43:07 +01:00
David Wakelin
de7d7c7722 Doc corrections 2021-08-16 16:16:01 +01:00
David Wakelin
cfea1967ab Added array keys for space and file listing 3.1.0 2021-08-16 16:00:08 +01:00
David Wakelin
f9b49002c7 Version 3 release. Major re-write 3.0.0 2021-08-09 17:33:50 +01:00
David Wakelin
127ad7e14a Added feature template 2021-08-05 09:54:03 +01:00
David Wakelin
6b76dfbe66 Another attempt at yml bug template 2021-08-05 09:51:46 +01:00
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 ()
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 ()
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 () 2.0.1 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 () v2 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 from Abdelhady/patch-2
Warning about forward slash for paths
v1
2019-06-05 02:07:39 +05:30
Devang Srivastava
c9bfe5f30a
Merge pull request 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 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 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 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 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 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 from richellyitalo/patch-1
Close file after upload ran
2018-07-27 00:14:33 +05:30