cancel
Showing results for 
Search instead for 
Did you mean: 

file upload

venkatvj
Champ in-the-making
Champ in-the-making
Hello,
I want to implement file upload(i.e input type="file") functionality in my webform displayed within a wizard.
Can you guys suggest some steps to implement the above?

Thanks
5 REPLIES 5

venkatvj
Champ in-the-making
Champ in-the-making
Can someone give me some pointers here?

If i am not clear here, basically in one of the steps in my custom-wizard i am required to upload a file and store it in the user's sandbox. I tried looking into the Add Content code but could not figure out how it works.

Any pointers would be very helpful.

Thanks

zaizi
Champ in-the-making
Champ in-the-making
Hi,

Check out http://wiki.alfresco.com/wiki/Forms_Developer_Guide for details on developing your custom web form.

You can use "xs:anyURI" to select an existing file or upload a new file.

Check out the WSF sample (http://wiki.alfresco.com/wiki/WSF) for examples of web forms using this.

Also, you are able to customise the file picker. See http://wiki.alfresco.com/wiki/Forms_Developer_Guide#FilePicker_configuration_.28Web_Forms_only.29 for details. I haven't tried this myself, but would be interested on how you get on.

Ainga

venkatvj
Champ in-the-making
Champ in-the-making
Hi,
Thanks for your reply.
I have infact tried using xsd but not able to render the webform.
.I checked out createwebcontentwizard that uses wcm:formprocessor
to render the xsd. But it does not help. I get some exceptions in that.
If you know of any article/steps to use xsd to render webform, please let me know.

For now, I switched to normal html Form and trying to use 'input type='file'
element.
Since wizard already has a Form, I need to find a way to implement the 'upload form'.
Let me know your thoughts

Thanks

dooley
Champ in-the-making
Champ in-the-making
Sorry to bump this thread…But were you able to figure out how to upload through xforms?

tommorris
Champ in-the-making
Champ in-the-making
Here's an extract of one of my XSD's:

<xs:element name="further_reading" minOccurs="0" maxOccurs="30">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="link" type="xs:anyURI" minOccurs="1"/>
         <xs:element name="label" type="xs:normalizedString"/>
      </xs:sequence>
   </xs:complexType>
</xs:element>

If you send me a private message, I can send you a PNG graphic of what this looks like when it's rendered.

The xs:anyURI is responsible for rendering a 'Select' button, which when pressed, renders a file-picker dialog.
This dialog allows you to browse the AVM repository for your web-project and link to files.
Also part of this dialog is an 'Add Content' button that allows you to browse your local file system and upload a file straight into the repo.

Do you see any of this when your XSD is rendered?

Tom
http://www.ixxus.com