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.

How can i get original filename?

See original GitHub issue

Hi all. How can i get original filename? In file object i get only { file: File { id: '-', upload_length: '3957145', upload_defer_length: undefined, upload_metadata: undefined } }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
FaizalDwicommented, May 5, 2021

@FaizalDwi I do not see any immediate error. What is the value of event.file.upload_metadata?

it solved already. i changed it into ‘name’, instead of ‘filename’ const newPath = '${storageFolder}/${metadataStringToObject(event.file.upload_metadata).name}'

1reaction
Acconutcommented, May 16, 2018

You pass oldpath to console.log in your callback, but the variable is called oldPath. Notice the capitalization. In JavaScript variable names are case sensitive, so oldpath is not oldPath.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Original Filename
Your best bet is to use exiftool -a -G1 -s FILE and look through all the metadata to see if there is anything...
Read more >
How can I get a Windows execuable's "Original Filename ...
It is readable to a Windows user from the "Details" tab of the file's "Properties" window (opened by rightclicking a file and selecting...
Read more >
How to recover original Filename? - Adobe Support Community
In the Metadata panel there is a field below File Name called Original Filename. It¨s visible when Metadata is set to Exif and...
Read more >
How do I find the original file name? - nbccomedyplayground
Right-click the file or folder, and then click Restore previous versions. You'll see a list of available previous versions of the file or...
Read more >
FileVersionInfo.OriginalFilename Property (System.Diagnostics)
Then it prints the OriginalFilename in a text box. ... SystemDirectory + "\\Notepad.exe"); // Print the original file name. textBox1.
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