Re: HTML5 Multiple File Upload?

2020-03-03 Thread Ruben Safir
On Tue, Mar 03, 2020 at 09:56:50AM -0800, Neil Gunton wrote: > On 3/3/20 9:55 AM, Ruben Safir wrote: > >On Tue, Mar 03, 2020 at 09:52:31AM -0800, Neil Gunton wrote: > >>I use Dropzone.js to achieve the client side multiple file selection: > >> > >>https://www.dropzonejs.com/ > > > >Can I host the j

Re: HTML5 Multiple File Upload?

2020-03-03 Thread Neil Gunton
On 3/3/20 9:55 AM, Ruben Safir wrote: On Tue, Mar 03, 2020 at 09:52:31AM -0800, Neil Gunton wrote: I use Dropzone.js to achieve the client side multiple file selection: https://www.dropzonejs.com/ Can I host the javascript locally? Yes It's received on the server side as usual, since the

Re: HTML5 Multiple File Upload?

2020-03-03 Thread Ruben Safir
On Tue, Mar 03, 2020 at 09:52:31AM -0800, Neil Gunton wrote: > I use Dropzone.js to achieve the client side multiple file selection: > > https://www.dropzonejs.com/ Can I host the javascript locally? > > It's received on the server side as usual, since the files are > uploaded as separate requ

Re: HTML5 Multiple File Upload?

2020-03-03 Thread Neil Gunton
I use Dropzone.js to achieve the client side multiple file selection: https://www.dropzonejs.com/ It's received on the server side as usual, since the files are uploaded as separate requests, as if they were selected and uploaded one by one. So it might not give you technically full HTML5 "mul

Re: HTML5 Multiple File Upload?

2020-03-03 Thread Ruben Safir
how did you solve this On Sat, Oct 15, 2016 at 08:20:38AM -0700, Neil Gunton wrote: > Does anyone know if Embperl can handle multiple file uploads from > HTML5? If so, how do you process the different files on the server > side? > > This works in many browsers now, so it would be nice to be able

AW: HTML5 Multiple File Upload?

2016-10-16 Thread richter
Hi, I never did it so far, but I would expect that it works similar to normal file upload. Embperl uses CGI.pm under the hood for file upload, so if CGI.pm can handle multiple files, Embperl should be able to do the same The file upload stuff is pure Perl code (in Embperl.pm, sub

HTML5 Multiple File Upload?

2016-10-15 Thread Neil Gunton
Does anyone know if Embperl can handle multiple file uploads from HTML5? If so, how do you process the different files on the server side? This works in many browsers now, so it would be nice to be able to wean myself away from the Flash widget I'm using currently for this. Thanks in advance

Regarding EmbPerl file upload Issue -- enctype is giving undef value ... EmbPerl 2.3.0 & CGI 3.55

2011-11-16 Thread Suresh Kumar
> Dear Sir, > > I am getting form data values as null in %fdat varible in EmbPerl, if we > go for file upload and form property enctype="multipart/form-data". > Without enctype="multipart/form-data" and submit the form, can see the > form values in %fdat varia

Multiple file upload

2011-09-28 Thread Neil Gunton
Hi Gerald and Embperl users, I've been interested in giving my users the option of uploading multiple files simultaneously, and the only/best option I was able to find up to now has been the swfupload Flash widget. However I now notice that people are starting to talk about doing this via HTML

Re: Problem with file upload

2008-09-30 Thread Jean-Christophe Boggio
Ben Hiebert wrote : Perl usually tries to guess at the best encoding when it takes in the data and then encodes it internally as best it can. You may have a problem where the data comes in as ISO88591 but perl thinks it is UTF8 data, encodes it internally as UTF8 and then prints out the UTF8-

Re: Problem with file upload

2008-09-30 Thread Ben Hiebert
Hi JC, I've got a similar problem on my site except the other way around- everything comes in ISO-8859-1 and I want it in UTF8. Perl usually tries to guess at the best encoding when it takes in the data and then encodes it internally as best it can. You may have a problem where the data com

Re: Problem with file upload

2008-09-30 Thread Luiz Fernando Bernardes Ribeiro
Hello JC, Try to set your locale inside your Embperl file, try: [- use locale; -] just before your upload code, and if this doesn't help try changing the locale for this file with the POSIX module: [! use POSIX qw(locale_h); !] [- use locale; setlocale(LC_ALL, "pt_BR.ISO8859-1"); -] Change

Problem with file upload

2008-09-30 Thread Jean-Christophe Boggio
Hello, I have a fully UTF8 encoded site in which I want users to upload files (simple :encoding(iso-8859-1)","sconet1.csv") or print OUT $!; my $buffer; while (read($fdat{efilename},$buffer,32768)) { print FILE $buffer; }

RE: File Upload Problems

2007-06-14 Thread Gerald Richter - ECOS GmbH
> I am using embperl and apache. When I try using the example > file distributed with embperl, namely upload.htm, I get the > following error display in the web browser: > > > > > Method Not Allowed > > > The requested method POST is not allowed for the URL > /file_upload.

File Upload Problems

2007-06-11 Thread Ragnar Hakonarsson
Hi all, I am having problem uploading a file from a web browser. I am using embperl and apache. When I try using the example file distributed with embperl, namely upload.htm, I get the following error display in the web browser: "Method Not Allowed The requested metho

RE: Errors after file upload

2006-08-17 Thread Gerald Richter
Hi, > > Actually w're running version 2.89 of CGI.pm - but I guess > the need to upgrade answer still holds? 2.89 has problem with mod_perl 2. I don't know which Apache/mod_perl version you are using. > > I know from my previous job about upgrading embperl and > everything else. It's hassle

Re: Errors after file upload

2006-08-16 Thread Michael Smith
er <[EMAIL PROTECTED]> wrote: Hi,>> I have been experimenting with file upload via forms.  I am> using the method described by Gerald back here:>> http://www2.ecos.de/~mailarc/embperl/2001-04/msg00101.html> <http://www2.ecos.de/%7Emailarc/embperl/2001-04/msg00101.html>> &g

RE: Errors after file upload

2006-08-15 Thread Gerald Richter
Hi, > > I have been experimenting with file upload via forms. I am > using the method described by Gerald back here: > > http://www2.ecos.de/~mailarc/embperl/2001-04/msg00101.html > <http://www2.ecos.de/%7Emailarc/embperl/2001-04/msg00101.html> > > It does su

Errors after file upload

2006-08-14 Thread Michael Smith
Hi there,I have been experimenting with file upload via forms.  I am using the method described by Gerald back here: http://www2.ecos.de/~mailarc/embperl/2001-04/msg00101.html It does successfully upload the file and do what I want, however subsequent requests to the server give this error:[Mon

Re: file upload

2006-05-28 Thread Angus Lees
On 5/25/06, Todd White <[EMAIL PROTECTED]> wrote: Shoot!  Current circumstances might not allow for a recompiling ofEmbperl.  Does anyone know of any possible work around? The problem comes from a change in behaviour of CGI.pm in versions 3.01+ So you could downgrade CGI.pm.  Alternatively, the

Re: file upload

2006-05-25 Thread Todd White
> mod_perl/1.29 > > mod_ssl/2.8.25 > > OpenSSL/0.9.7d > > HTML::Embperl 1.3.6 > > CGI 3.04 > > > > > > What happens when run on M_TWO is that nothing is written to the $content > > variable. > > Embperl 1.3.6 has a bug concerning File upload

Re: file upload

2006-05-25 Thread Dirk Jagdmann
M_TWO Apache/1.3.34 (Unix) Embperl/1.3.6 mod_perl/1.29 mod_ssl/2.8.25 OpenSSL/0.9.7d HTML::Embperl 1.3.6 CGI 3.04 What happens when run on M_TWO is that nothing is written to the $content variable. Embperl 1.3.6 has a bug concerning File upload. You can try to recompile Embperl

file upload

2006-05-24 Thread Todd White
I have a single small working program as a proof of concept for file uploading using Embperl. That program is as follows: ~~~ [- $fh = $fdat{testfield}; while (<$fh>) { $content .= $_; } -] filename: [+ $fdat{testfield} +] co

Re: Is there a patch for file upload with CGI > 3.00 ( EP 1.3.6 )

2004-12-06 Thread Dirk Jagdmann
is there an alternative location? Take this one: http://ftp.debian.org/debian/pool/main/libh/libhtml-embperl-perl/libhtml-embperl-perl_1.3.6-2.diff.gz -- ---> doj / cubic > http://cubic.org/~doj -> http://llg.cubic.org - To

RE: Is there a patch for file upload with CGI > 3.00 ( EP 1.3.6 )

2004-12-06 Thread Aldo Letellier
, Aldo LeTellier -Original Message- From: Angus Lees [mailto:[EMAIL PROTECTED] Sent: Saturday, December 04, 2004 5:34 AM To: Aldo Letellier Cc: [EMAIL PROTECTED] Subject: Re: Is there a patch for file upload with CGI > 3.00 ( EP 1.3.6 ) At Fri, 3 Dec 2004 12:56:05 -0500, Aldo Letell

Re: Is there a patch for file upload with CGI > 3.00 ( EP 1.3.6 )

2004-12-04 Thread Angus Lees
At Fri, 3 Dec 2004 12:56:05 -0500, Aldo Letellier wrote: > I know there is a problem with EP 1.3.6 and CGI > 3.0, but I can't find the > patch or fix for it. > Is there a patch for file upload with CGI > 3.00? See the Debian packages (or at least the .diff.gz file

Is there a patch for file upload with CGI > 3.00 ( EP 1.3.6 )

2004-12-03 Thread Aldo Letellier
Hi, I know there is a problem with EP 1.3.6 and CGI > 3.0, but I can't find the patch or fix for it. Is there a patch for file upload with CGI > 3.00? Thanks, Aldo LeTellier - To unsubscribe, e-mail: [EMAIL PRO

RE: File upload problem

2004-10-27 Thread Gerald Richter
> > [Mon Oct 25 17:45:57 2004] [error] [21920]ERR: 44: > _base.html(1): Setup of CGI.pm failed: CGI open of tmpfile: > Permission denied > Looks like CGI.pm has problem with it's temporary file. Take a look at perldoc CGI and search for upload. There you can find how CGI.pm find a location f

File upload problem

2004-10-25 Thread Robert Germič
I remeber this has been discussed, but the mail archive at http://www.ecos.de/~mailarc/embperl/ is down, so please advice: when trying to file upload, I got this in the error log [Mon Oct 25 17:45:57 2004] [error] [21920]ERR: 44: _base.html(1): Setup of CGI.pm failed: CGI open of tmpfile

Re: file upload

2002-03-19 Thread Gerald Richter
> > I have 1.3.4 installed now, but it still appears that $fdat{UploadFile} is > not accessible to the "read" function inside my code called by "Execute". > However, if I set $UploadFile=$fdat{UploadFile}, then I can "read" $UploadFile. > Then my guess that upgrading to 1.3.4 helps was wrong, but

Re: file upload

2002-03-18 Thread Gerald Richter
>version 1.3b7, according to the log Oh, this is really old. You should upgrade to 1.3.4 ... >But I want to be able to access %fdat values from inside frag1.epl. Wouldn't this prevent me from doing that? You can still access the data in %fdat, it's just not resetup (which doesn't work) when the

Re: file upload

2002-03-18 Thread Michael Boudreau
At 3/18/02 09:15 PM, Gerald Richter wrote: > I'm having a problem with a file upload when the "read" function is in an > embperl fragment called by the "Execute" method. > > > When I process the main file, I get a zero-length "tmpfile.txt&qu

Re: file upload

2002-03-18 Thread Gerald Richter
> frag1.epl runs in a different namespace, where %fdat does not exist. No, %fdat (as all other special Embperl variables) are imported into all Embperl pages, so it's the same regardless in which package you run Gerald - Gerald Rich

Re: file upload

2002-03-18 Thread Gerald Richter
> I'm having a problem with a file upload when the "read" function is in an > embperl fragment called by the "Execute" method. > > > When I process the main file, I get a zero-length "tmpfile.txt", because > there is apparently noth

Fwd: file upload

2002-03-18 Thread Michael Boudreau
close (FILE) or die "can't close: $!"; } -] then the upload works. >Date: Mon, 18 Mar 2002 10:31:38 -0600 >To: [EMAIL PROTECTED] >From: Michael Boudreau <[EMAIL PROTECTED]> >Subject: file upload > >I'm having a problem with a file upload when t

Re: file upload

2002-03-18 Thread Michael Boudreau
; this could be my problem.) > >Ed > >On Mon, 18 Mar 2002, Michael Boudreau wrote: > > > I'm having a problem with a file upload when the "read" function is in an > > embperl fragment called by the "Execute" method. > > > > Here's

Re: file upload

2002-03-18 Thread Ed Grimm
8 Mar 2002, Michael Boudreau wrote: > I'm having a problem with a file upload when the "read" function is in an > embperl fragment called by the "Execute" method. > > Here's a simplified version of my main file: > >

file upload

2002-03-18 Thread Michael Boudreau
I'm having a problem with a file upload when the "read" function is in an embperl fragment called by the "Execute" method. Here's a simplified version of my main file: [$ if $fdat{choice} eq "choice1" $]

Re: File-Upload: Content-Type occasionally empty

2001-07-31 Thread Thoren Johne
"Gerald Richter" <[EMAIL PROTECTED]> writes: > That should fix the problem, let me know if it works for you it did - thanks a lot :) -- # Thoren Johne - 8#X - [EMAIL PROTECTED] # Southern Division Classic Bikes - www.southern-division.com *42=sub{X=>35.56.32.10=>=>=>&{sub{H=>&{sub{P=>&{sub{A=>

Re: File-Upload: Content-Type occasionally empty

2001-07-31 Thread Gerald Richter
> > > > yes, it works with plain Embperl > > > >... > > with the -X switch, it only occurs the first time. > > > > Ok, this should be enough infos to track it down, I let you know as soon as > I have found the bug (will be over the weekend) > Goto Embperl.pm and add line 904 "!defined ($import) &

Re: file upload memory leak

2001-07-27 Thread Gerald Richter
Hi, > I stumbled on this post you made to the mod_perl mailing list in 1998: > This problem was fixed many years ago... CGI.pm did always create a new filehandle and never destroyed it. (so it had leaked a few bytes for each upload) > > My problem is with very large files. I upload, say, a 100

Re: File-Upload: Content-Type occasionally empty

2001-07-26 Thread Gerald Richter
> > yes, it works with plain Embperl > >... > with the -X switch, it only occurs the first time. > Ok, this should be enough infos to track it down, I let you know as soon as I have found the bug (will be over the weekend) Gerald - Ge

Re: File-Upload: Content-Type occasionally empty

2001-07-26 Thread Thoren Johne
"Gerald Richter" <[EMAIL PROTECTED]> writes: > > doing a simple file-upload does not always gives a content-type back > > with EmbperlObject. > > > > Did you try if it works with plain Embperl (without EmbperlObject) ? yes, it works with plain Embpe

Re: File-Upload: Content-Type occasionally empty

2001-07-26 Thread Gerald Richter
> doing a simple file-upload does not always gives a content-type back > with EmbperlObject. > Did you try if it works with plain Embperl (without EmbperlObject) ? > > this mostly happens after server-startup, and *sometimes* the content-type > is set after doing a form dat

File-Upload: Content-Type occasionally empty

2001-07-26 Thread Thoren Johne
doing a simple file-upload does not always gives a content-type back with EmbperlObject. im using the following fragment: <-- snip --> [$ if defined $fdat{ImageName} and $fdat{ImageName} $] Imagename:[+ $fdat{ImageName} +] Content-Type: [+ $fdat{-ImageName}->{

Re: File upload corruption with embperl upload example

2001-04-25 Thread Gerald Richter
> How do I determine the file handle in your upload example? > Where would I put this command in the example? > [- if (defined $fdat{ImageName}) { open FILE, "> /tmp/file.$$"; binmode FILE ; print FILE $buffer while read($fdat{ImageName}, $buffer, 32768);

Re: File upload corruption with embperl upload example

2001-04-24 Thread Gerald Richter
> I wasn't aware there was a binmode. How do you turn this on? Is > this something from Perl or EmbPerl? > It's a standart Perl command. Look at perldoc -f binmode Gerald - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: File upload corruption with embperl upload example

2001-04-23 Thread Gerald Richter
> I'm using Randy Kobes' precompiled Apache distribution containing > the following: > > Embperl 1.3b3/Windows NT 4.0/Apache 1.3.12/ModPerl 1.23/Perl > 5.6.0 > > When I use the Embperl upload example, files are getting somehow > corrupted. The file size is not the same as the original and the fi

File upload corruption with embperl upload example

2001-04-23 Thread Scott Chapman
I'm using Randy Kobes' precompiled Apache distribution containing the following: Embperl 1.3b3/Windows NT 4.0/Apache 1.3.12/ModPerl 1.23/Perl 5.6.0 When I use the Embperl upload example, files are getting somehow corrupted. The file size is not the same as the original and the file is not u

Re: File Upload problem

2001-03-26 Thread Gerald Richter
> I wrote an embperl script that uploads a file to a web > server. It works fine on Linux and Macs but not on > Windows. When I upload a file from a browser using > Windows 95/98, the file is uploaded to the web server > but it has 0 bytes in it. > Here is part of the script that checks a file fro

File Upload problem

2001-03-26 Thread Jeremy Le
I wrote an embperl script that uploads a file to a web server. It works fine on Linux and Macs but not on Windows. When I upload a file from a browser using Windows 95/98, the file is uploaded to the web server but it has 0 bytes in it. Here is part of the script that checks a file from Windows.

Re: File Upload

2001-03-07 Thread wim
Hi Jim, At Wed, 7 Mar 2001 20:11:15 +0100, Gerald Richter <[EMAIL PROTECTED]> wrote: >> >> In the second pass, I display the data back to the user >> >> while (@buffer = <$UserFile>) {print " $buffer";} >> >> and put up a button which will submit a hidden field to indicate the user >> has accep

Re: File Upload

2001-03-07 Thread Gerald Richter
> > In the second pass, I display the data back to the user > > while (@buffer = <$UserFile>) {print " $buffer";} > > and put up a button which will submit a hidden field to indicate the user > has accepted the data. > > print ""; > print ""; You cannot pass a file within a hidden field, actualy

File Upload

2001-03-07 Thread Jim Hamer
I am trying to upload a file. I am following the example presented in the apache.org/embperl site. As in the example, if the file handle isn't defined, I accept the file name from the user. print ""; print ""; In the second pass, I display the data back to the user while (@buffer = <$UserFil