|
Hi!
I've got a builder named 'blob' which extends
'attachments', because it contains an additional field 'date'. Now I'm using it
in the backend to upload files with it and I'm figuring out how I have to
construct the url to the file on the frontend when I'm generating a list - so
the browser can download it.
With the construction (where ${pfid} contains the
startnode of type projectfolder):
<mm:list
nodes="${pfid}" path="projectfolder,blob" fields="blob.title,blob.description,blob.date,blob.number" orderby="blob.date" directions="DOWN" > I'm able to retrieve all information, but I found
out the url /mmbase/attachments/session=cloud_mmbase+48294/TestDocument.xls
would also need the actual name of the uploaded file, not just blob.title. But
when I extends the fields attribute with blob.handle I'm
getting a
javax.servlet.ServletException: SearchQuery...failed: ERROR: column
blob.handle does not exist
errormessage. Since the original attachments-object has a handle, I should be able to acces blob.handle too right? How else I'm a going to construct the url to the file I want to download the file as in: /mmbase/attachments/session=cloud_mmbase+[blob.number]/[blob.handle]
(here I ofcourse I'll have to use ${...} variables instead of []
:D)
Anybody an idea?
Regards,
Met vriendelijke groet,
Ted Vinke |
- RE: handle of a file? Ted Vinke
- RE: handle of a file? Rob van Maris
- Re: handle of a file? Eduard Witteveen
- Re: handle of a file? Michiel Meeuwissen
- Re: handle of a file? Ted Vinke
- MMBase Sprints Willem Voogd
- Re: MMBase Sprints Michiel Meeuwissen
- Re: MMBase Sprints Eduard Witteveen
- RE: MMBase Sprints Henk Hangyi
