question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upload: The easiest way to rename the uploading file.

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

The current Upload component does not support rename the uploading file. It seems that the component takes the API – name then grab filename and upload to the server. Is there any way to rename filename then upload to server?

What does the proposed API look like?

<Upload reName={this.handleRename} />

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

18reactions
yesmeckcommented, May 17, 2018

<Upload data={(file) => file.name = 'foo'} />

7reactions
ghostcommented, Feb 5, 2019

<Upload data={(file) => file.name = ‘foo’} />

It is a read only property you can’t do this

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to rename uploaded file before saving it into a directory?
You can simply change the name of the file by changing the name of the file in the second parameter of move_uploaded_file ....
Read more >
File Upload: Rename Uploaded Files - Jotform
You can only change the file name on your local computer and then try to re-upload. If you are referring to the uploaded...
Read more >
File Renaming on Upload - Plugins - WordPress.org
Rename files on upload based on post title. Rename files on upload based on the Site URL. Rename files on upload based on...
Read more >
How to upload view and rename files in Google docs - YouTube
Learn how easy to work with documents online ... Step # 2 -- Notification about the uploaded files Once you have clicked on...
Read more >
Can i change a video filename after i have ... - YouTube
Have you ever wondered if you can change a video's file name after it's been uploaded to YouTube? Well, you're not the only...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found