Member

I have developed a GUI File Browser in C# using the YetiShare API. So far I can Browse the files and folders and I can download files. I can also browse all the properties of folders and files.
1. Would be good if the elements of the nodes (folder, files) had some kind of description.
2, I need some help with UPLOADING a file. The admin API test works OK but the documentation lacks some specification. I am sure that somewhere in the call I need to provide a file stream for the server to hook into and stream my file in... but it is not clear what the server is expecting. Using C# I create a MultipartFormDataContent and I provide all the necessary parameters and a file stream... I can see the file gets streamed up (bandwidth monitor) and it takes a while to finish - just like the file is streamed up . . . but at the end I get the error "Did not receive uploaded file." . . . and the file IS NOT present in the folder i selected it to be in.

I am pretty advanced in developing this File Browser and I could implement all the API calls but I am stuck in file_upload.

Member

For all interested . The C# browser is all done with all the functionality that I need for my future library. The windows GUI can be used to browse files and folder get extended info, upload, download and delete files. This is all that I need.

Next, I will move to code the client in Android which will read the files that the Windows app will create... So far so good!

Administrator

I have developed a GUI File Browser in C# using the YetiShare API. So far I can Browse the files and folders and I can download files. I can also browse all the properties of folders and files.
1. Would be good if the elements of the nodes (folder, files) had some kind of description.
2, I need some help with UPLOADING a file. The admin API test works OK but the documentation lacks some specification. I am sure that somewhere in the call I need to provide a file stream for the server to hook into and stream my file in... but it is not clear what the server is expecting. Using C# I create a MultipartFormDataContent and I provide all the necessary parameters and a file stream... I can see the file gets streamed up (bandwidth monitor) and it takes a while to finish - just like the file is streamed up . . . but at the end I get the error "Did not receive uploaded file." . . . and the file IS NOT present in the folder i selected it to be in.

I am pretty advanced in developing this File Browser and I could implement all the API calls but I am stuck in file_upload.

Member

lol and i am still stuck at upload API, got everything else to work fine no issues. Glad someone got upload API working... Do you mind helping me out on this upload CURL API ? I have tried every possibility and looked up curl file upload API's etc but no luck so far. I had given up on it lol.

Member

I am sorry my language is C# and even that is "as a second language" and I can't help you with curl.
The only thing that may be helpful that is not clear in the documentation is that you need to provide a files stream, or any other stream that can be connected to your file. The file name that you provide is only used by the API server to store that data under that name not to really upload it. To upload it the API server needs a multi-part data form to be passed on. In C# I use a MultipartFormDataContent like this:
==============
var values = new Dictionary<string, string>
{
{ "access_token", authorize.data.access_token},
{ "account_id", authorize.data.account_id},
{ "folder_id", folder_id},
};

Administrator

lol and i am still stuck at upload API, got everything else to work fine no issues. Glad someone got upload API working... Do you mind helping me out on this upload CURL API ? I have tried every possibility and looked up curl file upload API's etc but no luck so far. I had given up on it lol.

The next release will likely be in about 4-6 weeks. Although there's already support in the admin area for file descriptions, so if you're happy editing them using the admin area you can patch support into the API. To patch it edit:

Member

The next release will likely be in about 4-6 weeks. Although there's already support in the admin area for file descriptions, so if you're happy editing them using the admin area you can patch support into the API. To patch it edit:

OK. That was simple enough and I can get that "description" back trough the API using file_info.

BUT... Now to complete the circle that description should also be set (also) trough the API. Most appropriate (I think) as part of the upload file. So that when somebody uploads a file they can set at the same time a description for it.

Don't get me wrong. I think that the capability to set that "description" is usable, but not as usable if one can set it trough the API.

Member

lol and i am still stuck at upload API, got everything else to work fine no issues. Glad someone got upload API working... Do you mind helping me out on this upload CURL API ? I have tried every possibility and looked up curl file upload API's etc but no luck so far. I had given up on it lol.

Some curl examples of using this API:parameters
access_token=ha93FNTGZyfyr5G5ymrFQ7Az8V4SntcEDlHi9BZ9aeHBjoHSK8xBg8ap4fhsIu6lPODZqD8BRQdbeU4Z3CAjKLIP10hJuo5kcJjDmseeirpwmuwp67JQTsFUsWEXkKix
account_id=19
folder_id=3
upload_file=fileToUpload.zip