This question is in reference to Atlassian Documentation: Attaching Files to a Page
Rodney, it has to do with aggregating info from/to different systems/sources.
I'm confused by the use case
the Excel file seems to be on a general file server which people can edit.
Then once a day you want to store a back up of that file in Confluence which will hold all previous versions of the file as archived copies - why??? i.e. after one year do you really want Confluence to hold all 365 daily versions of that file?
Why can't your people changing the Excel file on your server, instead of opening the server file, changing it and saving, they just access Confluence, download that file, do their changes and upload it again? I know it is a little different to just double clicking a file on your PC browser.
Or if it is a simple table stored as an excel spreadsheet, just create a table on a Confluence page so people just edit the Confluence page
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Everytime you attach a file with the same name you will get a new version. You can attach files using REST API and curl. Here is an example:
curl -v -S -u admin:admin -X POST -H "X-Atlassian-Token: no-check" -F "file=@myfile.txt" -F "comment=this is my file" "http://localhost:8080/confluence/rest/api/content/3604482/child/attachment" | python -mjson.tool
The localhost URL needs to change to your wiki URL. The example is from this page:
https://developer.atlassian.com/confdev/confluence-rest-api/confluence-rest-api-examples
Cheers,
Peter T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's just an excel file on a network filestore location.
Do you have any recommendations of websites with example code I can modify?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the source file? Confluence has an extensive API so you could easily do this with any scripting language outside of Confluence.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.