You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Core/ServiceContracts/FilesContract.php
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,13 @@ public function rename(
104
104
/**
105
105
* @api
106
106
*
107
-
* @param string $file A publicly reachable URL that ImageKit’s servers can fetch. The server must receive the response headers within 8 seconds; otherwise the request fails with 400 Bad Request.
107
+
* @param string $file The API accepts any of the following:
108
+
*
109
+
* - **Binary data** – send the raw bytes as `multipart/form-data`.
110
+
* - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch.
111
+
* - **Base64 string** – the file encoded as a Base64 data URI or plain Base64.
112
+
*
113
+
* When supplying a URL, the server must receive the response headers within 8 seconds; otherwise the request fails with 400 Bad Request.
108
114
* @param string $fileName The name with which the file has to be uploaded.
Copy file name to clipboardExpand all lines: src/Core/Services/FilesService.php
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -257,7 +257,13 @@ public function rename(
257
257
* - A full-fledged [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), supporting file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more.
258
258
* - [Quick start guides](/docs/quick-start-guides) for various frameworks and technologies.
259
259
*
260
-
* @param string $file A publicly reachable URL that ImageKit’s servers can fetch. The server must receive the response headers within 8 seconds; otherwise the request fails with 400 Bad Request.
260
+
* @param string $file The API accepts any of the following:
261
+
*
262
+
* - **Binary data** – send the raw bytes as `multipart/form-data`.
263
+
* - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch.
264
+
* - **Base64 string** – the file encoded as a Base64 data URI or plain Base64.
265
+
*
266
+
* When supplying a URL, the server must receive the response headers within 8 seconds; otherwise the request fails with 400 Bad Request.
261
267
* @param string $fileName The name with which the file has to be uploaded.
Copy file name to clipboardExpand all lines: src/Files/FileUploadParams.php
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,13 @@ final class FileUploadParams implements BaseModel
66
66
use SdkParams;
67
67
68
68
/**
69
-
* A publicly reachable URL that ImageKit’s servers can fetch. The server must receive the response headers within 8 seconds; otherwise the request fails with 400 Bad Request.
69
+
* The API accepts any of the following:
70
+
*
71
+
* - **Binary data** – send the raw bytes as `multipart/form-data`.
72
+
* - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch.
73
+
* - **Base64 string** – the file encoded as a Base64 data URI or plain Base64.
74
+
*
75
+
* When supplying a URL, the server must receive the response headers within 8 seconds; otherwise the request fails with 400 Bad Request.
70
76
*/
71
77
#[Api]
72
78
publicstring$file;
@@ -338,7 +344,13 @@ public static function with(
338
344
}
339
345
340
346
/**
341
-
* A publicly reachable URL that ImageKit’s servers can fetch. The server must receive the response headers within 8 seconds; otherwise the request fails with 400 Bad Request.
347
+
* The API accepts any of the following:
348
+
*
349
+
* - **Binary data** – send the raw bytes as `multipart/form-data`.
350
+
* - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch.
351
+
* - **Base64 string** – the file encoded as a Base64 data URI or plain Base64.
352
+
*
353
+
* When supplying a URL, the server must receive the response headers within 8 seconds; otherwise the request fails with 400 Bad Request.
0 commit comments