Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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:

{template .page1Form}
 	 <form class="aui">
         <fieldset>
             <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">
             </div>
         </fieldset>
     </form>
{/template}

Java code:

public class MyContextProvider extends AbstractBlueprintContextProvider {

    @Override
    protected BlueprintContext updateBlueprintContext(BlueprintContext blueprintContext) {

        blueprintContext.get("file-upload-example");

        return blueprintContext;
    }
}

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

 

1 answer

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,
Daniel

Ok, thanks. I'll write post there.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

856 views 8 25
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you