-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get the source file name including directory when uploading from google drive #3621
Comments
At least with local files it's possible with uppy.addFile({
name: 'my-file.jpg', // file name
type: 'image/jpeg', // file type
data: blob, // file blob
meta: {
// optional, store the directory path of a file so Uppy can tell identical files in different directories apart.
relativePath: webkitFileSystemEntry.relativePath,
},
source: 'Local', // optional, determines the source of the file, for example, Instagram.
isRemote: false, // optional, set to true if actual file is not in the browser, but on some remote server, for example,
// when using companion in combination with Instagram.
}) For remote files from Google Drive I'm pretty sure we could add it here: uppy/packages/@uppy/companion/src/server/provider/drive/index.js Lines 31 to 52 in b22a812
Would you be willing to investigate and contribute a PR? cc @mifi |
Thanks @Murderlon , for your response I will check with my peers for the above solution. |
I think this has been implemented in #4537 |
Think so! |
Can uppy save the folder location of file that is picked from google drive and saves it in meta if the response is success ?
With a sample folder structure in google drive :
Once we upload the file the response turn out to be something like :
With the above folder structure , Uppy only seems to provide name of the file as
name
which is output1.csv and so on , which in case is repetative , hence would it be possible to get the directory name along with other meta values such asdir1/output1.csv
The text was updated successfully, but these errors were encountered: