Hi for the first time to these forums:
Would it be possible to download a file from a webpage into memory? and then to Upload from memory to another webpage in a separate step? Here's why I would want to do this:
- A bank's website allows the user to download a CSV file of transactions.
- A budgeting website allows the user to upload a CSV file of transactions.
- But the formats are not the same: a few lines of awk shuffle the format from the bank's column ordering into the desired format.
Currently I can do this by downloading the file onto my computer, running the awk script and uploading the results to the budgeting website.
But imagine how easy and "frictionless" it would be to have the following workflow:
- User open Firefox, accesses bank website and presses link/button to download transactions as a CSV file.
- At the moment of the "Save As..." dialog, one of the options would be to "Download into memory" Click this and choose a filename.
- The user logs out of the bank website.
- The user logs into the budgeting website
- The user presses the button to "Import"
- The Dialog offers a upload from memory option and the "file" created in step 2 is selected. Press OK/Upload
- The in-memory file is discarded.
This would mean that the download/upload cycle could possibly work on a mobile device where there is no access to AWK to handle the re-formatting.
I hope the my statement of the problem is clear!
Any suggestions? Even other forums to try, perhaps more suitable for this question?