4 users online. Create an account or sign in to join them.Users
Question about File Upload
This is an open discussion with 12 replies, filed under General.
Search
Did you add the field to your data source?
Have you included the file upload field in your data source?
Aaah, Craig is at the keyboard. I should leave. He is so fast.
Do you mean after you submit the upload form in the event xml? Im having that problem too.
wow, you guys are fast, thanks!!!!!
Yea that was it, somehow after just doing that for the content, it did not occur that I should link it to DS for the image as well. sigh.
One other question, if there is already the image in the destination folder of the file upload, the form throws an error. I am thinking in a scenario where it just might be easier to upload all the images to the folder then go link them in an entry? Just curious.
Again, thanks guys, appreciate it.
<image size="227 KB" path="/images" type="image/png">
<filename>mountain_hardtail_home_2.png</filename>
<meta creation="2010-02-25T15:56:19-07:00" width="410" height="390" />
</image>
above is the entry in the xml of the file upload that is coming through to the front end.I am assuming I have to call it
<img src="" />
But am not sure what the code would look like, I can add the direct path to the image, but that would not be efficeint?
One other question, if there is already the image in the destination folder of the file upload, the form throws an error.
Try one of the other upload fields, Unique Upload for instance.
But am not sure what the code would look like
If you want to just spit out the image, then:
<img src="{$workspace}{image/@path}/{image/filename}"/>
You can also use the JIT Image Manipulation extension.
<img src="{$workspace}{image/@path}/{image/filename}" />
sweet! Thanks.
Hey guys, sorry to bug,
I tried this
<img src="{$workspace}{image/@path}/{image/filename}" />
and for some reason only this is coming out in the front end:
<img xmlns="" src="http://localhost:8888/test/workspace/" />
am trying out JIT. :)
Looks like your XPath is out of scope. If you pastie your template, we can get it sorted.
yea it might be data/datasourcename/entry/image/path
Create an account or sign in to comment.
when I create and entry that has a file upload option, how to I access it?
Meaning when I ?debug I do not see it in the xml node. Am I missing something?