Results 1 to 2 of 2

Thread: Upload Code 404

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Upload Code 404


    I try to upload a text file to my home dir and get the following error:

    ServiceException: Code: 404
    Message: Not Found: object (public id b1480340868.15286, path root/users/MyUserName): No such file or Directory

    I checked on the developer referenz my token and everything works fine. Here is the c# part (console app). The variables home and homeid are correctly.

    private static async Task UploadFile(HiDriveClient client){
    var fields = new[] { User.Fields.Alias, User.Fields.Account, User.Fields.HomeId, User.Fields.Home };
    var user = await client.User
    var homeId = user.HomeId;
    var home = user.Home;

    var stream = File.OpenRead(@"C:\Users\MyUserName\Desktop\myfile .txt");

    var file = await client.File
    .Upload("myfile.txt", home, homeId)
    Last edited by hemmlingar01; 2019-01-28 at 02:04 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts