Announcement

Collapse
No announcement yet.

Upload file via OX Drive API

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Upload file via OX Drive API

    Hello everybody,
    i have a problem ;-)

    i want to upload files to OX Drive but i cant get it to work because it always says, that the checksum is incorrect (error code DRV-0009)

    i use this documentation: http://oxpedia.org/wiki/index.php?ti...#Upload_a_file
    the url i want to upload:
    Code:
    http://server.ox/ajax/drive?action=upload&session=6f12de2a0c414f938275fa94295720b5&root=29&path=/test_111&newName=vim.png&newChecksum=3902a7b7fe4aa17c2d96fb6d7ffbcd67&contentType=image/png&offset=0&binary=true&
    Request Method is PUT

    the result is the following

    Code:
    <!DOCTYPE html><html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">(parent["callback_upload"] || window.opener && window.opener["callback_upload"])({"error":"Integrity checks failed for uploaded file \"vim.png\". Please try again.","error_params":["29057efb90980293a907d392982e3893","vim.png","3902a7b7fe4aa17c2d96fb6d7ffbcd67"],"categories":"USER_INPUT","category":1,"code":"DRV-0009","error_id":"-805418687-805","error_desc":"Checksum \"29057efb90980293a907d392982e3893\" for uploaded file \"vim.png\" different from \"3902a7b7fe4aa17c2d96fb6d7ffbcd67\""})</script></head></html>
    when i change the newChecksum property to the one of the result, i got the same error only with another checksum...

    :-(

    Thank You!
Working...
X