Bug 413196 - Cannot export files with more as 4 MB to OneDrive
Summary: Cannot export files with more as 4 MB to OneDrive
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-OneDrive (show other bugs)
Version: 6.3.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
: 413199 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-10-19 15:30 UTC by Nicofo
Modified: 2024-04-22 20:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicofo 2019-10-19 15:30:02 UTC
SUMMARY
Using "Export to Onedrive" tool works for a few pictures.
When exporting a lot of them (e.g. an entire album of 100 pictures), an error occurs after a few (e.g. 3) pictures have been exported:
Error transferring https://graph.microsoft.com/v1.0/me/drive/root://Images/Holliday 003.jpg:/content - server replied: Internal Server Error

Note: maybe related to the size of the pictures ? When using the option "Resize photos before uploading", I encounter less problems.

SOFTWARE/OS VERSIONS
Digikam 6.3 (appimage), but this bug is not new (actually "Export to Onedrive" tool has never worked well for me). Also applicable on Fedora_RPM 6.1
Comment 1 Maik Qualmann 2019-10-19 17:14:22 UTC
*** Bug 413199 has been marked as a duplicate of this bug. ***
Comment 2 Maik Qualmann 2019-10-19 17:15:11 UTC
The OneDrive plugin uses the "Simple item upload" API. File size is 4MB maximum for videos and images. Support for the "Resumable item upload" API requires more work.

Maik
Comment 3 caulier.gilles 2020-01-10 09:52:51 UTC
Git commit 94a97bf01ad6e9829c564769a84b71632bb992c7 by Gilles Caulier.
Committed on 10/01/2020 at 09:51.
Pushed by cgilles into branch 'master'.

Install QtWebKit run time process to handle web browser request with AppImage.
Related: bug 413855, bug 397856

M  +21   -3    project/bundles/appimage/04-build-appimage.sh

https://invent.kde.org/kde/digikam/commit/94a97bf01ad6e9829c564769a84b71632bb992c7
Comment 4 caulier.gilles 2023-05-06 09:34:02 UTC
Maik,

If the One Drive file size limitation is 4 MB currently (which is ridiculous), this must be written to the online documentation. Right ?

Gilles
Comment 5 caulier.gilles 2023-05-06 09:38:21 UTC
Git commit 3b5a644f57d48718d17311b6b49aa9331e797b12 by Gilles Caulier.
Committed on 06/05/2023 at 09:37.
Pushed by cgilles into branch 'master'.

Add note about OneDrive file size limitation

M  +4    -0    export_tools/one_drive.rst

https://invent.kde.org/documentation/digikam-doc/commit/3b5a644f57d48718d17311b6b49aa9331e797b12
Comment 6 caulier.gilles 2023-05-06 09:39:35 UTC
We can also add a check about file size before uploading, and refuse to process file upper to 4Mb by reporting a warning in dialog files list view.

Gilles
Comment 7 Nicofo 2023-05-06 13:17:22 UTC
(In reply to caulier.gilles from comment #6)
> We can also add a check about file size before uploading, and refuse to
> process file upper to 4Mb by reporting a warning in dialog files list view.
> 
> Gilles

No please.

Why do you says the limit is 4Mb ? I guess it was the case previously, but it is now much larger.

I made some new tests: it is now well possible to export files > 4Mb (I exported a lot of pictures of about 5 - 6Mb).

I am even able to export a video of 98.4 Mb.
But is does not work with another of 168.5 Mb: following error message is displayed:
  Error transferring https://graph.microsoft.com/v1.0/me/drive/root:/<path to image>:/content - server replied: Request Entity Too Large

So the limit is somewhere between 98.4 and 168.5 Mb (100Mb maybe ? Possible to check that on Microsoft documentation ?)
Comment 8 Maik Qualmann 2023-05-06 14:28:49 UTC
According to the Microsoft documentation, the "simple upload" we currently use is still limited to 4MB. Should more be possible in the meantime, it is not yet documented.

Maik
Comment 9 caulier.gilles 2024-04-20 03:23:04 UTC
Hi all,

The digiKam 8.4.0 Appimage bundle pre-release is now based on last modern frameworks Qt 6.7.0 and KDE 6.2.0.

File can be downloaded at usual place : https://files.kde.org/digikam/
Take a  care : the bundle is named with the suffix "-Qt6" not "-Qt5". This bundle is compiled under Ubuntu 22.04 and require a Linux with GlibC version >= 2.35 to run.

Can you reproduce the dysfonction with this version?

Thanks in advance

Gilles Caulier
Comment 10 Nicofo 2024-04-22 20:09:03 UTC
As stated in #comment 7:
> I am even able to export a video of 98.4 Mb.
> (...)
> So the limit is somewhere between 98.4 and 168.5 Mb (100Mb maybe ? Possible to check that on Microsoft documentation ?)"

So this bug can be closed for me.
But you should remove the remark in the documentation that you introduced in #comment 5 :  "OneDrive file storage is currently limited to host only files with a size lower than 4Mb."
Comment 11 Maik Qualmann 2024-04-22 20:13:10 UTC
No, according to Microsoft API documentation it is still limited to 4MB in simple item upload mode.

Maik
Comment 12 Nicofo 2024-04-22 20:17:50 UTC
(In reply to Maik Qualmann from comment #11)
> No, according to Microsoft API documentation it is still limited to 4MB in
> simple item upload mode.
> 
> Maik

I believe you, but try by yourself, this limit is not correct anymore ;)