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
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -104,13 +104,7 @@ public function rename(
104
104
/**
105
105
* @api
106
106
*
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.
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.
114
108
* @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
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -257,13 +257,7 @@ 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 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.
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.
267
261
* @param string $fileName The name with which the file has to be uploaded.
Copy file name to clipboardExpand all lines: src/Files/FileUploadParams.php
+2-14Lines changed: 2 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -66,13 +66,7 @@ final class FileUploadParams implements BaseModel
66
66
use SdkParams;
67
67
68
68
/**
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.
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.
76
70
*/
77
71
#[Api]
78
72
publicstring$file;
@@ -344,13 +338,7 @@ public static function with(
344
338
}
345
339
346
340
/**
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.
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.
0 commit comments