简体   繁体   中英

Allow the user to upload a document to the application

Using Orchard CMS V 1.6 I would like to implement a feature which (1) allows the user to upload a document (2) stores the date it was uploaded (3) Stores the id of the record uploaded

Is there a part for doing this.

I've no idea how to go about this....any suggestions welcome...thanks

EDIT 在此处输入图片说明

As I'v said i've used your advice to create a content type. Then created a custom form and tried to add that content type(the media) to a custom form.(as explained on the link you provided http://devdirective.com/post/160/how-to-create-custom-forms-in-orchard-cms-with-email-and-recaptcha )

however when it appears on screen on the front end the mediaPicker box appears but it is greyed out and doesnt allow me to select it. 'Browse' and 'clear' also do nothing....Also how can i remove the option of the permalink

thanks

  • Create a new content type with whatever name you want eg. MyFileUpload
  • Add the Title, AutoRoute and Common part (common part will store the date the content item was created)
  • Add a field and select the Media Picker Field (you can limit extensions to only allow .doc files if you wish and make this field required)

Something like that should work :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM