View this page "HowToFixUploadFeature"

14 views
Skip to first unread message

Thomas Deselaers

unread,
Jul 24, 2009, 8:36:34 AM7/24/09
to FIRE - Flexible Image Retrieval Engine
tried out a bit the formatting options.


Click on http://groups.google.com/group/fire-cbir/web/howtofixuploadfeature
- or copy & paste it into your browser's address bar if that doesn't
work.

parisberkata

unread,
Nov 16, 2009, 11:39:22 PM11/16/09
to FIRE - Flexible Image Retrieval Engine
hi all, i got problem in this upload issue.
i have try all steps in this tutorial but i still can't upload new
image. No error message. No file uploaded to /tmp.

then i try to change this code (line 860 fire.py in the web
interface) :

if(form.has_key("newFile") and form["newFile"].value=="1"):
#message+=str(form["newFile"])
message+=newFile(form)

i change form["newFile"].value to "0" like this :

if(form.has_key("newFile") and form["newFile"].value=="0"):
#message+=str(form["newFile"])
message+=newFile(form)

and it work, i able to upload new image and fire show the retrieval
results.
But there are something wrong with the random image retrieval. when i
click one of the random image, fire show "no retrieval result" error
message. The random image retrieval didn't work.

then i try to change the code , still in line 860, form[newFile].value
to "1" again. The random image retrieval work fine but the upload
feature didn't work again.

anyone have the same problems with me ? what should i do? change the
conditional rule?

parisberkata

unread,
Nov 24, 2009, 12:02:32 AM11/24/09
to FIRE - Flexible Image Retrieval Engine
hi, i've just solve my problem, in my case the input button on the
newFile form should be like this :

result+="""<input type="submit" name="upload" value="Upload"
onClick="doc
ument.queryForm.newFile.value=1" >"""

just add this as log for my self,
thanks.
Reply all
Reply to author
Forward
0 new messages