Upload File from Internet (OpenInsight 32-Bit)
At 21 JUL 2006 02:23:05PM Dave Hatcher wrote:
I want to do somthing I have not done before. Hopefully someone has done somthing similar and can point me in the right direction.
I am using OECGI for HTML interface access to look up data. I now want to allow the person browsing to upload a picture, that I can
later have someone in the regular OINSIGHT application look at.
I do not see how I get the picture uploaded to my system using the web browser. Any suggestions appreciated.
At 21 JUL 2006 03:36PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
World leaders in all things RevSoft
At 25 JUL 2006 07:23PM Dave Hatcher wrote:
[notag]That was helpful. I created a form and some code to test the values submitted, but seem to be stuck on the FORM tag (of all things). When the FORM tag contains enctype="multipart/form-data" (and contains the file INPUT), OECGI times out in responding. When I make it a normal form, my parameters are returned normally. Has anyone had any luck getting OI 4.1.2 working with file INPUT and multipart/form data?
The form:
<form enctype="multipart/form-data" method="post" action="inet_design1">
<input type="hidden" name="customer" value="CUSTOMER"> (swapped value)
<p><strong>Your name:</strong><br>
<input type="text" name="name" size="50"></p>
<p><strong>E-mail address:</strong><br>
<input type="text" name="email" size="50"></p>
<p><strong>Picture:</strong> <input type="file" name="file1" size="50" /></p>
<p><strong>Comments:</strong><br><textarea rows="10" name="comments" cols="50"></textarea></p>
<p><input type="submit" value="Send your comments and pictures"> <input type="reset"></p>
</form>
And my code is basically returned Inet_QueryParam(Request, field) for each field in an HTML page.[/notag]
At 28 JUL 2006 04:13PM Dave Hatcher wrote:
Still not having any luck. Threw in a debug statement right at the beginning of my program, too. It seems like OECGI for OI 4.1.2 just doesn't like enctype=multipart-data forms.
At 28 JUL 2006 04:43PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
You have 7 bit encrypted to avoid any potential @Fms in the data stream being swapped out for \0D0A\?
World leaders in all things RevSoft
At 28 JUL 2006 05:27PM Warren Auyong wrote:
Ah, I was going to say SWeb didn't like it either. So if I change the charset of the HTML page to ISO-646 it should work?
At 28 JUL 2006 05:43PM Dave Hatcher wrote:
The document charset (in the HTML code itself) was windows-1252 for some reason. Can't see how or why this would make a difference; the rest of our sites obviously work.
Changed it to UTF-8 and same result. What is the suggestion that I change it to, now?
At 28 JUL 2006 05:44PM Dave Hatcher wrote:
It doesn't seem to like UTF-8, either.
At 03 AUG 2006 06:43PM Dave Hatcher wrote:
Until I have a better solution, I'll redirect to an external program to handle the uploading and then "pass the session" back to oecgi. This is a very disappointing workaround.
At 03 AUG 2006 08:46PM dsig@sigafoos.org wrote:
have you noted it in the problems section?
At 04 AUG 2006 07:07AM Mike Ruane wrote:
Dave-
We've just added the ability to upload a file via OECGI2 for the 8.0 release. It's being tested right now.
Mike