From: kghbln <med...@kg...> - 2011-11-14 21:02:45
|
Heiya Yaron, this is an interesting feature. I am looking forward to SF 2.3 :) 1) I do not think it should be there by default since I suspect that this consumes performance. I also think it will be easier to switch it on for paticular forms rather than switching it off for all forms there it is not needed. 2) What happens if you allow the upload of non picture formats such as (pdf), ogg, mp3, xls, doc and formats like that? Previews for files like them will not be possible. It would thus be nice to be able to turn it off. 3) I think 200 px is an optimal size. However it is always better to offer people a choice. Thus I propose a range from 100 to 300 px. Cheers [[kgh]] Am 14.11.2011 21:38, schrieb Yaron Koren: > Hi, > > The next version of Semantic Forms, 2.3, which will be coming out fairly > soon, will have a new feature that lets the form itself display uploaded > files - both recently-uploaded files, and files of existing pages. This > feature is already available in the latest version of the SF code, on SVN - > if you have the latest code, you can try it out by adding the parameter > "|imagepreview" to the relevant {{{field}}} tag. Or, you can try it out on > Referata, which already has that code - here's a form that uses it: > > http://scratchpad.referata.com/wiki/Form:Upload > > ...and here's a sample page: > > http://scratchpad.referata.com/w/index.php?title=Ohi_there&action=formedit > > I have a few questions about this feature: > > - This feature currently requires a parameter, but should it be a default, > with a parameter like "|no preview" instead? > - Or maybe it should just always be on - is there any reason not to always > show the preview? > - The width of the previewed image is currently always 200 pixels. Should > that width be settable? Or maybe the default should just be a different > size? > > Any feedback is welcome. > > Thanks, > Yaron > |