Confiforms - Accessing version / modification date info in uploaded files

I'm using Confiforms macros to create forms where users can input information, including uploading files.

This works well, with the file being stored as an attachment on the page holding the form "database".

However, I would like to add a field to the database to access info from these files (e.g. date created), or info from their URLs (e.g. Version number / Modification Date ).

How can this be achieved?

 

Thanks.

2 answers

Hi @Chris Jones

 

I think I am the right person to help you with this.

As I understand you want to show some metadata for stored files (with ConfiForms) and show it on some page, correct?

Version number is stored together with the file handler in ConfiForms, that should be OK to get, and you want a "file modification date", right?

 

PS, Feel free to contact us directly vertuna(at)vertuna.com or through the contact form on our wiki.vertuna.com website

Best Regards

Sash

And update to this question: 

Now it is possible to access attachement metadata of the file stored through ConfiForms, https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions

basically, you can access any property of the Attachment object, https://docs.atlassian.com/confluence/5.9.1/com/atlassian/confluence/pages/Attachment.html

and also you can get the base64 encoded contents of the attachment (caution: can be memory consuming for large files)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,922 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you