-
Notifications
You must be signed in to change notification settings - Fork 36
Save CSV To Specific Directory #255
Comments
For anyone seeking to resolve this issue, there are some pretty conflicting responses on whether or not saving to a specific directory is possible. [This] StackOverFlow forum has many users noting that it's impossible because it would pose a serious security threat to users. However, [this] website has an example of saving a file to a specific directory location. It's incompatible with Firefox though, and I wasn't able to make it work on Google Chrome or Edge as it suggests you use. It mentions using the [File System Access] but this might involve incorporating this project into our own which might be undesirable. There seems to be a much newer, and more maintained, project that could be a helpful resource. The [File System Standard] seeks to,
This project's GitHub repo can be found [here] but this could also mean incorporating something into the project that might be undesirable for functionality that's more of a leisure than a necessity. Additional resources:
Comment by FutzMonitor |
If this was an implemented feature, would it be worthwhile to add another issue allowing admins to configure whether the CSV is downloaded straight to the downloads folder or a specified directory? I think so since it would be nice to switch between the two. This would necessitate more updates to the CustomTable, UI, and both their testing files. Comment by FutzMonitor |
Possibly a simpler solution would be to have the "Save As" dialog that would open default either to Downloads, or preferably just to the last location that the user had used. That's still 2 clicks instead of 1 to get something into downloads if that is where you always put it. But I am hesitant to make more configuration options than we really really need. That said, when someone works on this issue we can revisit this point. Comment by braughtg |
Current Functionality
Desired Functionality
An enhancement of this feature would be allowing users to decide where they want the csv file to be saved on their system. They would click the export button but instead of the file automatically saving into their downloads folder, a file explorer window would open up and allow the user to pick which directory they would like to save the csv file in.
The CSV function is located inside of the CustomTableComponent.js file. Altering this file means the contributor should also add an additional test into the CustomTableComponent.spec.comp.js file if possible (or opening another issue so somebody else can do it) to make sure that the file has full coverage of the component's functionality.
Good place to start: here
The text was updated successfully, but these errors were encountered: