Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9270 > unrolled thread
| Started by | thaychua00@gmail.com |
|---|---|
| First post | 2016-04-18 08:16 -0700 |
| Last post | 2016-04-19 08:24 -0700 |
| Articles | 9 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
files upload to iis ftp server from client web browser thaychua00@gmail.com - 2016-04-18 08:16 -0700
Re: files upload to iis ftp server from client web browser JohnMartens <martens@tennishulp.info> - 2016-04-18 18:17 +0200
Re: files upload to iis ftp server from client web browser thaychua00@gmail.com - 2016-04-18 13:40 -0700
Re: files upload to iis ftp server from client web browser JohnMartens <martens@tennishulp.info> - 2016-04-19 07:25 +0200
Re: files upload to iis ftp server from client web browser thaychua00@gmail.com - 2016-04-19 08:16 -0700
Re: files upload to iis ftp server from client web browser thaychua00@gmail.com - 2016-04-19 10:35 -0700
Re: files upload to iis ftp server from client web browser thaychua00@gmail.com - 2016-04-21 15:34 -0700
Re: files upload to iis ftp server from client web browser "korijn@gmx.ch" <korijn@gmx.ch> - 2016-04-19 01:18 -0700
Re: files upload to iis ftp server from client web browser thaychua00@gmail.com - 2016-04-19 08:24 -0700
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-18 08:16 -0700 |
| Subject | files upload to iis ftp server from client web browser |
| Message-ID | <5a794d7a-8193-4f63-a7d7-d3e0ebffff4d@googlegroups.com> |
hi all, not been using my vo 2.7 for 10 years.. i am a bit rusty with it now. is there anyone can share some source on http code to allow upload files (small sizes. txt files mainly) from a client's web browser to win2000 iis ftp server. i am still using 2.7b . code using internet class in vo is ok. i know there is ftp sample in vo 2.7 i can dig in .. but i would prefer a quick simple solution. tom zsabo posted many moons ago about file upload .. .................... 8/7/04Tom Szabo Hi All, We have put together a sample WEB application that implements an object oriented approach in generating Html code from VO. It has all the libraries/sourcecode, sample MS-Sql database, AEFs and compiled EXE. It is in VO 2.6, but will not take much to migrate to 2.7. The sample also has an installation guide and a simple conceptual guide describing the main idea... The sample shows how upload a picture from the clients browser to tthe server, create a new record in the database to keep track of the uploaded pictures and make them available for viewing... Title "Upload Sample" on the KnowVo site. Comments are welcome. If anyone needs help please let me know.... Regards, Tom ............. knowvo site is longer available. anyone downloaded this some where? many thanks
[toc] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2016-04-18 18:17 +0200 |
| Message-ID | <nf313v$ji8$1@dont-email.me> |
| In reply to | #9270 |
Why use a webbrowser for FTP and not from VO itself ? John Op 18-4-2016 om 17:16 schreef thaychua00@gmail.com: > hi all, not been using my vo 2.7 for 10 years.. i am a bit rusty with it now. is there anyone can share some source on http code to allow upload files (small sizes. txt files mainly) from a client's web browser to win2000 iis ftp server. i am still using 2.7b . code using internet class in vo is ok. i know there is ftp sample in vo 2.7 i can dig in .. but i would prefer a quick simple solution. > > tom zsabo posted many moons ago about file upload .. > .................... > 8/7/04Tom Szabo > Hi All, > We have put together a sample WEB application that implements an object > oriented approach in generating Html code from VO. > > It has all the libraries/sourcecode, sample MS-Sql database, AEFs and > compiled EXE. > > It is in VO 2.6, but will not take much to migrate to 2.7. > > The sample also has an installation guide and a simple conceptual guide > describing the main idea... > > The sample shows how upload a picture from the clients browser to tthe > server, create a new record in the database to keep track of the uploaded > pictures and make them available for viewing... > > Title "Upload Sample" on the KnowVo site. Comments are welcome. If anyone > needs help please let me know.... > > Regards, > > Tom > ............. > > knowvo site is longer available. anyone downloaded this some where? > > many thanks >
[toc] | [prev] | [next] | [standalone]
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-18 13:40 -0700 |
| Message-ID | <df48a83c-3bb8-4801-a296-40306a7d0afe@googlegroups.com> |
| In reply to | #9271 |
hi john, files uploading from a web browser thingy is a bit blurr to me.
basically i have a vo exe that outputs the following to a client's web browser:
<html>
<head><meta name="viewport" content="width=device-width, initial-scale=1" /></head>
<body>
<form action="myexe.exe" method="POST">
<input type="hidden" name="siteid" value="AIL36C6462">
<input type="hidden" name="userrec" value="0">
<input type="hidden" name="userid" value="thaychua">
</form>
<div id="submenu">
A commas delimited Text File that has clocking lines
each line is separated by a hard carriage return Chr(13)
</div>
<script language="JavaScript">function checkEntry(f){alert(f.cmuds.value);}</script>
<table>
<form name="dform" action=myexe.exe method=post onsubmit="return checkEntry(this);">
<input NAME="action" VALUE="showuploadfile" TYPE=HIDDEN>
<tr><td>
<form name=form1><input type=file name="cmuds">
<input type="submit" onClick="checkEntry(this)" value="Upload File">
</form>
</td></tr>
</table>
</body>
</html>
i have done all steps to make sure i receive the selected file (with correct path .. not the c:\fakepath\).
now, i need someone to shed some lights on how to code vo to receive the contents in the selected file from my client's device to my web server side.
thanks.
[toc] | [prev] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2016-04-19 07:25 +0200 |
| Message-ID | <nf4f99$70p$1@dont-email.me> |
| In reply to | #9275 |
My question is: why let your VO exe output to the webbrowser and not use
VO to get the filename, send the file and leave all of the browser stuff ?
Op 18-4-2016 om 22:40 schreef thaychua00@gmail.com:
> hi john, files uploading from a web browser thingy is a bit blurr to me.
>
> basically i have a vo exe that outputs the following to a client's web browser:
>
> <html>
> <head><meta name="viewport" content="width=device-width, initial-scale=1" /></head>
> <body>
> <form action="myexe.exe" method="POST">
> <input type="hidden" name="siteid" value="AIL36C6462">
> <input type="hidden" name="userrec" value="0">
> <input type="hidden" name="userid" value="thaychua">
> </form>
>
> <div id="submenu">
> A commas delimited Text File that has clocking lines
> each line is separated by a hard carriage return Chr(13)
> </div>
>
> <script language="JavaScript">function checkEntry(f){alert(f.cmuds.value);}</script>
>
> <table>
>
> <form name="dform" action=myexe.exe method=post onsubmit="return checkEntry(this);">
> <input NAME="action" VALUE="showuploadfile" TYPE=HIDDEN>
>
> <tr><td>
> <form name=form1><input type=file name="cmuds">
> <input type="submit" onClick="checkEntry(this)" value="Upload File">
> </form>
> </td></tr>
>
> </table>
>
> </body>
> </html>
>
> i have done all steps to make sure i receive the selected file (with correct path .. not the c:\fakepath\).
>
> now, i need someone to shed some lights on how to code vo to receive the contents in the selected file from my client's device to my web server side.
>
> thanks.
>
[toc] | [prev] | [next] | [standalone]
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-19 08:16 -0700 |
| Message-ID | <a70e50bf-532b-4be5-9615-3e6700f34f27@googlegroups.com> |
| In reply to | #9277 |
thanks again john. i am in the process of converting a vo app that wrote 10 years ago run on windows desktops to be web based app. this web enabled vo app is multi-site and multi-user operation. the text file to be uploaded to my web server can be at any location, any file name that each user (web client) choose to upload from his/her web browser. it is easier to show you what it is, still in testing but u can quickly go to ; http://172.248.7.133/ at the bottom left of your browser screen, test site acct is: aii1373447 site access code is: 1884344734 logon with user name: bh user password: bh once you are in the system. select Upload option near the top right of the screen .. choose a file then click Upload .. i only show the selected file name rigt now .. next step is suck that file to my web server. thanks again.
[toc] | [prev] | [next] | [standalone]
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-19 10:35 -0700 |
| Message-ID | <818361ef-3ac0-4e75-ae1f-7ce1d525e801@googlegroups.com> |
| In reply to | #9277 |
thanks again john. i am in the process of converting a vo app that wrote 10 years ago run on windows desktops to be web based app. this web enabled vo app is multi-site and multi-user operation. the text file to be uploaded to my web server can be at any location, any file name that each user (web client) choose to upload from his/her web browser. it is easier to show you what it is, still in testing but u can quickly go to ; http://www.sonigasoftware.com/ at the bottom left of your browser screen, test site acct is: aii1373447 site access code is: 1884344734 logon with user name: bh user password: bh once you are in the system. select Upload option near the top right of the screen .. choose a file then click Upload .. i only show the user's selected file name for now .. next step is suck that file to my web server. thanks again.
[toc] | [prev] | [next] | [standalone]
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-21 15:34 -0700 |
| Message-ID | <5052d150-1d16-4987-ae58-2c63f6a58bfa@googlegroups.com> |
| In reply to | #9282 |
Thanks to Frans Wauters. I downloaded cgiupload.zip from his website and I found a bug in the function upload() in this zip file. Details are below, hope it may help others. > Op maandag 18 april 2016 17:04:24 UTC+2 schreef thayc...@gmail.com: > > hi willie, knowvo.com is not available. do you have this sample saved some where? thanks > > > Hi, > > Maybe you can find it on my site: http://vo.wautersit.com/pubcavo ? > > Regards, > Frans Thanks Frans, I downloaded the cgiupload.zip .. and it seems to provide what I am looking for. I found a small BUG in the "FUNCTION upload( llog AS LOGIC ) AS VOID PASCAL" that makes the function stay in an endless do-while loop and never exit back to the Start() function to ultimately close down the program properly. e.g. when the upload() function finishes writing the destination file. it closes the handle the destination file but it never exit the loop. I add an exit statement after Fclose(hpost) and the program terminates properly. as blow: ====================================================================== FUNCTION upload( llog AS LOGIC ) AS VOID PASCAL LOCAL hpost AS PTR LOCAL htemp AS PTR LOCAL c1 AS STRING LOCAL c2 AS STRING LOCAL cinput := "" AS STRING LOCAL cBoundary AS STRING LOCAL cformtype AS STRING LOCAL celement AS STRING LOCAL cvalue AS STRING LOCAL nposfilenamestart AS DWORD LOCAL nposfilenameend AS DWORD LOCAL nstart AS DWORD LOCAL nend AS DWORD LOCAL i1 AS DWORD LOCAL i2 AS DWORD LOCAL i, dwSize AS DWORD LOCAL cfilename AS STRING LOCAL cfullname AS STRING LOCAL nwhere AS DWORD LOCAL hstdin AS PTR . . . . DO WHILE i1 > 0 .and. i2 > 0 .and. nend = 0 i2 := FRead3( hstdin, PTR( _CAST, c2 ), 1024*32 ) IF llog FWrite( htemp, ' i2: ' + NTrim( i2 ) + ' ' + NTrim( 8 ) + crlf ) ENDIF nend := At2( crlf + cBoundary, SubStr3( c1, 1, i1 ) + SubStr3( c2, 1, i2 )) IF nend = 0 FWrite3( hpost, PTR( _CAST, c1 ), i1 ) c1 := c2 i1 := i2 c2 := Buffer( 1024*32 ) ELSE EXIT ENDIF ENDDO IF nend > i1 nend := nend - i1 FWrite3( hpost, PTR( _CAST, c1 ), i1 ) FWrite3( hpost, PTR( _CAST, c2), nend ) i1 := i2 - nend - 1 c1 := SubStr2( c2, nend + 2 ) ELSE FWrite3( hpost, PTR( _CAST, c1 ), nend ) i1 := i1 - nend - 1 c1 := SubStr2( c1, nend + 2 ) ENDIF FClose( hpost ) exit // added by HOANG LUU. 2016.04.21 ENDIF . . . . RETURN
[toc] | [prev] | [next] | [standalone]
| From | "korijn@gmx.ch" <korijn@gmx.ch> |
|---|---|
| Date | 2016-04-19 01:18 -0700 |
| Message-ID | <d4dfe9db-de28-414c-bc69-6efa68bb698c@googlegroups.com> |
| In reply to | #9270 |
Hallo Tom I have a CGI and this is handle uplodas to the webserver, send me your mail adress and i will send you all the source for uploading. But of course you still have to change the code for you app. its VO 2.7 Horst
[toc] | [prev] | [next] | [standalone]
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-19 08:24 -0700 |
| Message-ID | <830b9d4c-14e0-48b4-b7e3-589add224cb7@googlegroups.com> |
| In reply to | #9278 |
hello horst, that will be me that need the sample. thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web