Forum Discussion

Mousumi Datta's avatar
Mousumi Datta
Explorer | Level 3
3 years ago

file upload by laravel 5

I have used laravel 5 . I have uploaded the file to dropbox. but the file was not uploaded. Please guide me. It's very emergency.

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

    Mousumi Datta wrote:

    ... I have uploaded the file to dropbox. but the file was not uploaded. ...


    Hi Mousumi Datta,

    🤔 Hm... And at the end did you upload the file or not?

    To be able somebody help you, some additional information would be fine to exists. Most important: What actually is the issue??? How have you tried to upload the file (using SDK, direct API call, or something else)? What's the SDK type and version, if any? What are you getting as a error, if any? etc...

    • Mousumi Datta's avatar
      Mousumi Datta
      Explorer | Level 3

      this error occured. I have used "benjamincrozat/laravel-dropbox-driver " for my laravel website . but file not uploaded.

      My controller code is

      $file = $request->file('filesend');

      $ert= $file->getClientOriginalExtension();

      $file_src=$request->file("filesend"); //file src
      $is_file_uploaded = Storage::disk('dropbox')->put('public-uploads',$ert);

      if($is_file_uploaded){
      return Redirect::back()->withErrors(['msg'=>'Succesfuly file uploaded to dropbox']);
      } else {
      return Redirect::back()->withErrors(['msg'=>'file failed to uploaded on dropbox']);
      }  

       

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:

        • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
        • the full text of any error or unexpected output from the Dropbox API itself

        Note that we cannot provide support for using third party libraries themselves, and the code and screenshot you shared here seems to show the interaction with a third party library, not the Dropbox API. If you need help with the Dropbox API, please provide the relevant details. Otherwise, for help with the third party library, please contact the developer of that library.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 4 days ago
217 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!