Web help needed

Andre Garzia andre at andregarzia.com
Mon Jul 13 11:43:42 EDT 2020


Folks,

I think that either you're all misreading the original intent, or I have
read it wrong.

>From what I have read, Mike has a webapp that converts from one file format
to another and wants to do bulk conversion. Rsync and FTP will not help
there, what he needs to to be able to call that form multiple times or
refactor the form to support multiple files.

Mike, get yourself familiar with "file type inputs" from HTML and how they
can support multiple file selection. In the two links below you'll have a
reference to the APIs and DOM elements related to that:

* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
*
https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications

Using that you could rework your form to accept multiple files, even with
drag and dropping, which I believe will solve your problem.

Still, I don't think that doing the entire archive in a single go is a good
idea as Apache will hangup the CGI process after a predefined timeout, but
you could do a subset of it, for example each month in a single pass.

Best
A



On Sun, 12 Jul 2020 at 19:32, Richard Gaskin via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Bill Prothero wrote:
>  > Sorry if this is off, but what about just transferring them with ftp?
>
> FTP is good enough for a small number of files.  But for automating
> large numbers of file transfers rsync is hard to beat, a much smarter
> tool making things much more efficient.
>
> By default, rsync will only transfer files that have changed, and even
> then only transfers the portions of a file that's changed.
>
> It can be used to sync folders locally or remotely - I run all my
> backups with it, in addition to using it post files to servers from my
> local master copy.
>
> rsync is preinstalled with macOS, can be added to Windows, and is a
> standard part of most popular Linux distros used on servers.
>
> It's secure using SSH, so if you add your SSH public key to your server
> (useful for a good many things) you not only get good security but it
> makes it easy to automate with LiveCode's shell function.
>
>
> @Michael Doub: I believe HostM uses Ubuntu, so rsync is preinstalled
> there.  And since you use macOS, your copy is preinstalled on your Mac.
>
> IMNSHO, you'll want to request SSH for any hosting service that doesn't
> offer it by default.  With SSH, not only do you get to use standard
> Unix/Linux utilities like rsync, scp, and others, but sooner or later
> you're likely to need or want to do something on that server outside of
> the limited scope of what FTP is designed for.  With shell access you
> can do anything you need, just as good as having the server sitting on
> your desk, even if it's thousands of miles away.
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   ____________________________________________________________________
>   Ambassador at FourthWorld.com                http://www.FourthWorld.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
http://www.andregarzia.com



More information about the use-livecode mailing list