Problem uploading f...
 
Notifications
Clear all

Problem uploading files via /upload API

1 Posts
1 Users
0 Reactions
2 Views
(@adrians)
Joined: 1 day ago
Posts: 1
Topic starter  

Hi,

   I am preparing a migration process to Carbonio CE, and I am investigating a possibility to bulk upload files. I have consulted removed link and I was able to obtain an Authentication token. However, when trying to use methods in removed link , a sudden HTTP 400 appears:

$ curl -v -k -X POST -H 'Cookie: ZM_AUTH_TOKEN=0_xxxxxx' -H 'Content-Type: Application/octet-stream' --data-binary @file.odt  removed link 

> POST /services/files/upload HTTP/2
> Host: 192.168.1.2
> User-Agent: curl removed link 
> Accept: */*
> Cookie: ZM_AUTH_TOKEN=0_xxxxxxx
> Content-Type: Application/octet-stream
> Content-Length: 36673
> 
* upload completely sent off: 36673 bytes
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/2 400 
< server: nginx
< date: Tue, 21 Jan 2025 13:10:17 GMT
< x-envoy-upstream-service-time: 101
< 
* Connection #0 to host 192.168.1.2 left intact
400 Bad Request
$

   Am I missing something here? Looks like /download operation is working correctly, so I am probably not very far off.I am not able to locate an error message on the server side.

   Are there maybe some discrepancies between CE and commercial versions when it comes to the Files module?


   
Quote