dan3460's avatar

Reading the upload % of a file.

When i upload files on the application that i'm building there is a % that shows up at the bottom left hand side of the window. How can i grab that number?

0 likes
2 replies
qiutuleng's avatar

@dan3460 Hi. If you using the axios library to upload file. you can try to use the onUploadProgress event.

Hope to help you.

dan3460's avatar

I'm not using axios. I think!. On the controller i grab the file name and use the following to upload the file:

$request->file("filename")->store('folderName");

With that there is a % shown on the bottom left of the browser showing the progress of the upload.

Please or to participate in this conversation.