Skip to content

Temp files/File whitelists #26

Open
pan261 opened this issue Feb 2, 2022 · 1 comment
Open

Temp files/File whitelists #26

pan261 opened this issue Feb 2, 2022 · 1 comment
Labels
long term Not an issue for now, but will be for later research Need to investigate options
Projects

Comments

@pan261
Copy link
Contributor

pan261 commented Feb 2, 2022

Something like vim will make swap (.swp) files when a new file is being written but isn't being saved. Chokidar will pick up on these files (even though they are hidden to the user) and try to upload, and it will fail. This field:

ignored: (path) => path.split('.').pop() === "swp",

was added to the chokidar config options to ignore these files, but there may be other temporary file types we need to handle in the future.

@pan261 pan261 added the long term Not an issue for now, but will be for later label Feb 2, 2022
@pan261
Copy link
Contributor Author

pan261 commented Feb 2, 2022

I've found that simple regexes won't work for the ignored field, but they should be able to work when wrapped in a function. Another thing to note is that there are some file extensions that will not be accepted by the fusion api, for example, I tried to upload a half-downloaded ISO, the extension was .iso~, and the result was this:
image

@will1742 will1742 added this to To do in File Upload via automation Feb 3, 2022
@pan261 pan261 added the research Need to investigate options label Feb 14, 2022
@pan261 pan261 changed the title Temp files Temp files/File whitelists Mar 10, 2022
Sign in to join this conversation on GitHub.
Labels
long term Not an issue for now, but will be for later research Need to investigate options
Projects
File Upload
  
To do
Development

No branches or pull requests

1 participant