rooey / chromeos-filesystem-onedrive

This project provides a OneDrive FileSystem mount for ChromeOS
http://onedrivefs.justmichael.uk/
BSD 3-Clause "New" or "Revised" License
36 stars 23 forks source link

Failed to upload files in v3.0.0 #47

Closed wyudong closed 5 years ago

wyudong commented 5 years ago

Describe the bug

I'm compiling the latest code from master branch and install Version 3.0.0 Alpha - Build 04281 on a Chromebook. But it fails to upload files to OneDrive using this extension. However, viewing, downloading, deleting files are all OK.

To Reproduce

Steps to reproduce the behaviour:

  1. Drag a file from My files to OneDrive (this extension)
  2. Error said "Copy operation failed. The file or the directory is no usable." at the sidebar
  3. A 0-byte file is copied to OneDrive but the file is broken

Expected behaviour

It should upload files to OneDrive without any error.

ChromeOS Version

Additional context Console.log. The format is sloppy but I think the problem is caused by a 400 request. I don't know how to set the parameter itemId in the url correctly. In the original code, it is replaced with this (L611).

https://graph.microsoft.com/v1.0/me/drive/items/onedrivefs://ad120d5f0a4630df/createUploadSession 400 (Bad Request)
rooey commented 5 years ago

This issue is covered in #39 and #36. The feature is still being written... It's the missing piece, stopping a release/update... I just haven't had time to go back to it.

rooey commented 5 years ago

awesome that you managed to get it compiled and working tho.... Grats! :)