On 02/21/2013 01:04 PM, dmnrmr wrote:
> Hello! I have school project where i need to make a page where used could
> input some information (name, surname etc...) + be able to upload doc/pdf
> files. So i wanted to make a file upload option so i googled it.
> 
> I have found this page:
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/HTML5Upload
> 
> My code looks like:
> 
> {{html}}
> <form action="" enctype="mutipart/form-data" method="post">

The action of the form should point to the "upload" action of XWiki, not
back to the view mode. Try:

action="${doc.getURL('upload')}"

This code needs to be placed in a {{velocity}} macro, so if you're not
already using one, you can just write:

action="{{velocity}}${doc.getURL('upload')}{{/velocity}}"

> <input type="file" name="file" id="my_upload" />
>  </form>
> 
> {{/html}}
> 
> The problem is that i can sleect file to upload, progress bar appears, but
> then nothing happens (see attachment image). Could you help me to resolve
> this issue?
> 
> <http://xwiki.475771.n2.nabble.com/file/n7583955/Untitled-1.png> 


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to