You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Alex1347's avatar
Alex1347
Helpful | Level 5
3 months ago

Video file uploaded via api doesn't play on DropBox.

I wrote lib on C# using DropBox API for upload videofiles, I can upload video files correct, but these files doesn't play on DropBox. I saw this answer https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Video-uploaded-via-api-cant-be-played/m-p/287701#M17592  but I don't understand how it's help me find specific reason of error ?  (because it's help only confirm contain problem\error)

  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Engineer rankDropbox Engineer

    Hi @Alex1347

     

    The suggestion in the answer you linked is helpful as part of the troubleshooting process. As highlighted in that post, downloading the file to confirm the file size is correct should rule out any issues that may have occurred during the upload process. Alternatively, you can confirm that the content_hash value generated by the server is identical to the original/locally stored file (https://www.dropbox.com/developers/reference/content-hash).

     

    If the file size of the uploaded file and the original file size match, there may also exist the possibility that the file format is not supported by the browser you are using to play the file.

     

    As an additional troubleshooting step, and to rule out any potential issues with the library or framework being used to generate the request, we would suggest testing uploading the file via a cURL request.

     

    I hope this information is helpful!

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Alex1347 wrote:

    ..., I can upload video files correct, ...


    Hi Alex1347,

    Hm..🤔 If you can upload video file correct... what's wrong then. Did you make it sure? 🧐

    That what I understand "upload correct" is when comparing original source file (actual file type doesn't matter) and the uploaded mirror, byte by byte to be the same. Did you check this?

     


    Alex1347 wrote:

    ... but I don't understand how it's help me find specific reason of error ?  (because it's help only confirm contain problem\error)


    If you can clarify what's the reason for something not to work (i.e. what's wrong together with problem confirming), you have almost found the "specific reason of error" out. It's almost the same - you're just one step away. 😉 Don't be lazy; do it if you want of course. 🤫 If you want, you may share some code snippet that reproduces the problem while running standalone - something that may be commented on.

    Good luck.