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/Services/FilesService.php
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -257,8 +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 The URL of the file to upload. A publicly reachable URL that ImageKit servers can fetch.
261
-
* 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.
262
267
* @param string $fileName The name with which the file has to be uploaded.
0 commit comments