-
Notifications
You must be signed in to change notification settings - Fork 14
Create OR Upload File
Kunal Varma edited this page Mar 11, 2016
·
2 revisions
Create a file with contents
$contents = "Hello World";
$item = $client->createFile("hello.txt", $contents);
$file = "/path/to/file";
$createdFile = $client->uploadFile($file);
$file = "helloworld.txt";
$createdFile = $client->uploadFile($file, "hello.txt");
$file = "helloworld.txt";
$createdFile = $client->uploadFile($file, "hello.txt", $folderID);
$url = "http://example.com/hello-world.txt";
$createdFile = $client->uploadFromUrl($url, "hello.txt", $parentFolderID);
- Working with Drives
- Fetch Item
- [Fetch Children of a folder](Fetch Folder Items)
- Search
- Item Thumbnails
- [Download Item and Save it to a file](Download Item)
- Create Folder
- Create OR Upload File
- Conflict Behaviors
- [Update an Item's MetaData](Update Item Metadata)
- Copying and Moving Items
- Deleting an Item
- Create Sharing Links