Quick question, hopefully, I have a document type with an upload property, users will create the content through a form I am writing. With regards to the upload, do I need to create a media type and store the document in that with a link to the media stored in the uplaod property or is there a (better) way to go about this, here's the code I currently have, as you can see the upload code is currently commented out whilst I try and figure out the best way to go about this:
Upload Property for Document Type
Hi all,
Quick question, hopefully, I have a document type with an upload property, users will create the content through a form I am writing. With regards to the upload, do I need to create a media type and store the document in that with a link to the media stored in the uplaod property or is there a (better) way to go about this, here's the code I currently have, as you can see the upload code is currently commented out whilst I try and figure out the best way to go about this:
Thanks.
The upload field property just stores a string with the path of the file. So you can upload it anywhere you want and then just store the path.
When someone upload from the admin interface, it will automatically create a folder in media and upload it there, but it's not required.
That's great to know, thanks Sebastian.
is working on a reply...