85 Commits

Author SHA1 Message Date
nao-pon 3909861f64 fix(onedrive): prefer cached Graph download URLs for file access
Fixes #3722

Use @microsoft.graph.downloadUrl for OneDrive file access and
fall back to the /content redirect when needed.

Reuse cached download URLs when available, and update the cache
only when a full stat entry already exists.
2026-04-23 16:04:53 +09:00
nao-pon 6bd50c285c [OneDrive] fix Content URL 2024-12-04 00:41:19 +09:00
nao-pon 617891ab92 [VD:OneDrive] show error on _od_obtainAccessToken() 2021-06-14 17:26:06 +09:00
nao-pon 9c232afa3d [VD:OneDrive] uses elFinder::curlExec() instead curl_exec() 2020-11-30 21:18:10 +09:00
nao-pon 0b09fc31c5 [VD:MySQL,OneDrive] fix #3142 remove debug code 2020-04-05 16:13:58 +09:00
nao-pon 2332f257ca [cmd:netmount] fix #3138 OAuth not possible with CORS due to new ITP 2020-03-30 15:44:47 +09:00
nao-pon a9d9bc81e1 [php:core] fix #3134 close file pointer before deleting temporary file on shutdown 2020-03-28 17:33:27 +09:00
nao-pon eb27d15a12 [cmd:netmount] re-make OAuth window open / close behavior 2020-02-24 11:01:48 +09:00
nao-pon 79a838be29 [php] fix #3114 stream proxy function using the file cmd corresponds to range request 2020-02-23 18:26:37 +09:00
nao-pon 37cd3c5a40 [VD:OneDrive] bugfix of large file uploading 2020-02-17 02:22:32 +09:00
nao-pon d97ffa2cda [VD:@net] adjusted display of alias name when offline 2020-01-12 20:12:49 +09:00
nao-pon e230aed0e9 [VD] save alias of options to session data of netmount volume 2020-01-10 23:14:00 +09:00
nao-pon 2af3bdbecc [php:core,VD] fix enbug of dc614fc705
rel. #3077
2020-01-10 15:25:32 +09:00
nao-pon dc614fc705 [VD] more faster with "rapidRootStat" - rel #3077 2020-01-10 11:38:26 +09:00
nao-pon bea656f8ec [VD] fix error handling when authentication fails 2020-01-10 01:23:56 +09:00
nao-pon 22794730c0 [VD:OneDrive] tiny correction 2020-01-04 13:33:02 +09:00
nao-pon cb3006e4f4 [VD:Box,OneDrive] prevent duplicate creation of thumbnails of permanent mounts 2020-01-04 11:19:48 +09:00
nao-pon d1eff035c9 [cmd:netmount] use only one volume when obtaining a refresh token 2020-01-04 00:49:10 +09:00
nao-pon 8315f73436 [VD:Box,OneDrive] fix handling of token cache file 2020-01-03 18:19:08 +09:00
nao-pon 82aff964a0 [VD:Box,OneDrive] correction of handling of refrash_token 2020-01-02 23:18:49 +09:00
nao-pon 8df7f88cb7 [VD:Box,Dropbox2,GoogleDrive,OneDrive] show tokens only on netmount volume on debugmode 2020-01-02 17:29:15 +09:00
nao-pon 186075ac3c [VD:Box,OneDrive] fix #3082 support permanent mount with connector roots configure 2020-01-02 15:42:37 +09:00
nao-pon 95dae79ab9 [VD:OneDrive] fix WARNING: curl_setopt_array(): stream does not support seeking 2020-01-02 11:15:53 +09:00
nao-pon d4809c8284 [VD:OneDrive] fix notice error in _dimensions() 2020-01-01 12:13:32 +09:00
nao-pon 34c74cb9cd [VD] fix #3074 authentification (return) URL not useable if the connctor url has "?" 2019-12-31 22:25:30 +09:00
Benjamin Morel 320841db76 Fix docblock (#3004) 2019-09-25 22:39:36 +09:00
nao-pon 15cc46ea27 [php] change code style to PSR-2 of all of php files 2019-01-01 21:18:39 +09:00
nao-pon 896af8cb44 [php] potential bug fixes and PHPDoc fixes
fix #2810, fix #2811, fix #2812 and fix #2114
2019-01-01 20:05:30 +09:00
nao-pon 52e365ed23 [api:url] fix #2808 supports onetime url for the external service
Add an option `onetimeUrl` of the volume root option.

`'onetimeUrl' => true`

or

`'onetimeUrl' => function($file, $options, $volumeInstance) { return 'String of onetimeurl'; }``

To enable onetime URL support.
2018-12-30 00:12:22 +09:00
nao-pon 0c3079c505 [php:core] simplify result generation on duplicate
rel. #2765
2018-11-21 15:58:08 +09:00
nao-pon c26bac761e [VD] to make possible controling on network mount function by user's connector.php 2018-10-13 22:32:59 +09:00
nao-pon e4f1850e33 [API,ui:cwd] fix #2535 show the remaining time until the volume expires into cwd 2018-06-07 21:21:09 +09:00
nao-pon eafa99fb57 [VD:LocalFileSystem,OneDrive] fix wrong result of isNameExists() 2018-03-21 21:29:45 +09:00
nao-pon d927a82c4c [VD:abstract] fixe #2408 have the generic archive function for remote volume 2018-03-04 00:17:17 +09:00
nao-pon d3c8858d4d [VD:OneDrive] support to upload large files with an upload session 2017-12-26 01:52:08 +09:00
nao-pon b65d6f4132 [VD:OneDrive] correction to Microsoft Graph end point 2017-12-25 00:21:52 +09:00
nao-pon 50272e035f [VD:OneDrive] switch to authorization with the Microsoft Graph 2017-12-24 22:31:53 +09:00
nao-pon 0d92f95d69 [VD:Box,GoogleDrive,OneDrive] fix Notice errors 2017-12-24 12:23:12 +09:00
nao-pon fbdaae5143 [VD:OneDrive] re-fix problem of not show thumbnail of new items
c.f d38bc4fa47
2017-11-21 17:16:14 +09:00
nao-pon 6895097b43 [VD:OneDrive] fix PHP Notice error 2017-11-21 16:32:49 +09:00
nao-pon d38bc4fa47 [VD:OneDrive] fix problem of not show thumbnail of new items 2017-11-21 16:23:47 +09:00
nao-pon 97c99cfafb [VD:abstract] optimization of thumbnail related functions 2017-11-21 15:20:44 +09:00
nao-pon 1b6c78820b [api] add optional query (int)'substitute' to command dim
The connector can return the URL of the substitute image whose size will fit in that pixel as the value of the key 'url' of the result data when the 'substitute' parameter gives with `dim` command from the client.

Add the following two options on the client side config `commandsOptions.resize` to fixes #2251.

```javascript
// File size (bytes) threshold when using the `dim` command for obtain the image size necessary to start editing
getDimThreshold : 204800,
// File size (bytes) to request to get substitute image (400px) with the `dim` command
dimSubImgSize : 307200
```
2017-10-30 16:46:19 +09:00
nao-pon 84ac1c51ba [VD:abstract] make new public method tmpfile() and use it 2017-09-18 22:57:44 +09:00
nao-pon f540e4d953 [VD] use fopen($this->getTempFile(),'wb') instead tmpfile()
cf. #2205
2017-09-18 22:40:48 +09:00
nao-pon dea87f7c96 [VD:OneDrive] fix #2131 causes an infinite loop at the copy command 2017-08-08 18:13:03 +09:00
nao-pon 9c69a33eb4 [VD:Box,OneDrive] fix #2122 to be able to know the access token in debug mode 2017-08-03 17:24:41 +09:00
nao-pon c8c6a1389c [php:core,VD] make temporary content URL available on network drive etc 2017-06-07 23:40:50 +09:00
nao-pon f47a64d4c3 [VD] use tmbPath as tmp directory as fallback 2017-04-24 22:31:04 +09:00
nao-pon d41feeacb7 [cmd:netmount] fix #1925 allow selection of multi-level hierarchy 2017-03-14 22:00:17 +09:00