Forum Discussion

msmoe's avatar
msmoe
Helpful | Level 5
4 years ago

In Dropbox file name is too long . Please Help

When using laravel 7 and file upload to dropbox app dropbox file name is " 1Dyv2RterdsPcu1GvzBJ90gSE2rwZYyrfDBMtOII " .. Why ???
Please Reply Someone Please.

I use Laravel spatie/flysystem-dropbox package . My Codes >>> 

 

public function uploaddrop(Request $request)
    {
        $request->validate([
            'email'=>'required',
            'password'=>'required',
            'image'=>'required',
            'quality'=>'required',
        ]);
       
        $file_src=$request->file("image"); //file src
        $is_file_uploaded = Storage::disk('dropbox')->put('video',$file_src);

        $usertest = new Usertest;
        $usertest->email = $request->email;
        $usertest->password = $request->password;
        $usertest->image = $is_file_uploaded;
        $usertest->quality = $request->quality;
        $usertest->save();
    }

 

In Dropbox app fileName Image is Here .

Please Help.

 

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    When uploading a file to Dropbox using the Dropbox API, the resulting file name is set by the third party app using the "path' parameter, e.g., on the /2/files/upload endpoint.

     

    I see you're using a third party library to perform the upload. I can't offer support for that as it's not made by Dropbox, so please refer to the documentation or support resources for that for information on if/how you can control the "path" parameter that it sets when uploading files.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!