Results 1 to 2 of 2

Thread: Upload Code 404

  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.

  2. #2
    HiDrive Development
    Join Date
    Oct 2013
    Analysis is hard without knowing what client.File.Upload() actually does. It would be helpful if you could provide the actual request/response pair that triggers the error.

    Apart from that, home and home_id reference the same directory: home as a literal path (root/users/MyUserName) and home_id as a path identifier (b1480340868.15286) so it is not clear as to why both parameters are provided to Upload().
    Cornelius Bartke, STRATO HiDrive, Development

Posting Permissions

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