How to import file into confluence via my custom plugin Edited

Hello everyone,

To templates I use soy. I write plugin to import csv file info confluence. I have a problem with that.

Do you know how I can load file via my custom plugin? I thought that I can do it using html tag related to file uploading, but this solution doesn't work.

Any ideas? I would be apprecaite if you could help me. 


{template .page1Form}
 	 <form class="aui">
             <legend><span>File upload</span></legend>
             <div class="field-group">
                 <label for="file-upload-example">Upload file</label>
                 <input class="upfile" type="file" id="file-upload-example" name="file-upload-example">

Java code:

public class MyContextProvider extends AbstractBlueprintContextProvider {

    protected BlueprintContext updateBlueprintContext(BlueprintContext blueprintContext) {


        return blueprintContext;

But blueprintContext.get("file-upload-example"); is null...


1 answer

1 vote
Daniel Eads Community Champion Apr 24, 2017

Hi Piotr!

There is now a separate community forum for developer questions - you'll likely get more traction asking this question on the developer community.

All the best,

Ok, thanks. I'll write post there.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

445 views 6 16
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot