Core: Unable to download a file to local system using NextCloud API

Created on 11 Jan 2018  Â·  10Comments  Â·  Source: owncloud/core

Hi All,

I am trying to download a file from a user account in NextCloud, using NextCloud API's with Curl command.

For small files it executes with out error but when I do 'ls' on the current folder it does not show the file.

  1. command used
    curl -u user3:user3@123 -X GET 'http://x.x.x.x/remote.php/dav/files/user3/push.sh'

  2. file location in UI
    image

  3. ls on local system ip masked intentionally
    image
  4. uploading a bigger file throws binary data on the console

ex: curl -u user3:user3@123 -X GET 'http://x.x.x/remote.php/dav/files/user3/VXLAN_Scaling_Data_Center_Designs.pdf'

image

Please let me know what I am doing wrong.

I am also providing log output for large file
largeFile.log

Bug design

Most helpful comment

@tummimadhu guess you haven't opened the link shared by @PVince81 . Kindly do it.

All 10 comments

GitMate.io thinks the contributor most likely able to help you is @PVince81.

this is the ownCloud bug tracker. Please report in https://github.com/nextcloud/server

Hi @PVince81 , where to report an issue in the nextcloud/server, i did not find any link to report a bug, please guide me.

Thanks
madhu

Hi Vincent,

Can you please guide me where to raise this issue under nextcloud github
shared earlier.

Thanks
Madhu

"Success is never a destination... it's a journey."

On Tue, Jan 16, 2018 at 12:58 PM, Vincent Petry notifications@github.com
wrote:

https://github.com/nextcloud/server/issues/new

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/owncloud/core/issues/30100#issuecomment-357875233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF9p6fQBM-Ukj6vVCh92cYsQyXqGNemQks5tLE-ugaJpZM4Rawab
.

@tummimadhu guess you haven't opened the link shared by @PVince81 . Kindly do it.

Hi @sharidas , I opened earlier link whic took me to the code base, I created the new issue @https://github.com/nextcloud/server/issues/7880
But not seen any suggestion for the same. :) till now!
Thanks
Madhu

@tummimadhu With all due respect, now nextcloud team may respond to your issue. And if you face any issues with owncloud, feel free to open here :)

@sharidas, further update: Using the command curl -u user3:user3@123 -X GET 'http://x.x.x/remote.php/dav/files/user3/config.txt, I am getting the contents of the file printed on the console, So my understanding is GET is used to get the content of a file. However I need a REST API to download the file from a user account. Can any one help out with the API's.??

Kindly read comment https://github.com/owncloud/core/issues/30100#issuecomment-358228621 again .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tommis picture tommis  Â·  5Comments

PVince81 picture PVince81  Â·  4Comments

j-holub picture j-holub  Â·  3Comments

fridaynext picture fridaynext  Â·  5Comments

jnweiger picture jnweiger  Â·  4Comments