Publishing to a host other than local caused the following not to work
it doesn't work with or without the commented line. I was told that the line wasn't necessary but it was required a while ago. You can browse and select your file but nothing happens when you submit.
I can't find the session folder on the server to see if the upload did take place and the problem is not the fault of opening and writing to the DB
It seems that there are a lot of things that operate differently with a remote host compared to a local one.
The message does not appear when you submit. Also the code is above the html for the page. It almost looks like its not even being executed.
Code:
<%a5 dim msg as c = "" if eval_valid("cmd") [COLOR=sandybrown] 'filetoupload.filename=word(filetoupload.filename,-1,"\\") [/COLOR] file.from_blob(session.session_folder + "\\" + FileToUpload.filename, FileToUpload.data) msg = "<a href=\"/" + FileToUpload.filename + "\" target=\"_blank\">" + FileToUpload.filename + "</a> was uploaded to Descendent<br /><br />" Dim t as P Dim Rec as N Dim indx as P t= table.open("[PathAlias.ADB_Path]\descendents.dbf") query.filter = "Key = " + quote(session.link) indx = t.query_create() Rec = indx.records_get() if (rec > 0) then t.fetch_first() t.change_begin() t.Photo=FILE.TO_BLOB( session.session_folder + "\\" + FileToUpload.filename ) t.changedby=session.User_name t.change_end(.t.) end if t.query_detach_all() t.close() response.redirect("view.a5w") END IF %>
I can't find the session folder on the server to see if the upload did take place and the problem is not the fault of opening and writing to the DB
It seems that there are a lot of things that operate differently with a remote host compared to a local one.
The message does not appear when you submit. Also the code is above the html for the page. It almost looks like its not even being executed.
Comment