On Fri, Aug 12, 2016 at 9:10 PM,
​
​
ADeeg <[email protected]> wrote:
>
>
> Hi, I like to upload pictures to the Amazon S3 storage and hope that I can
> get timesavers to do this from 4D.
>
> Who can help me ?
>

​Armin, we went through the whole official aws command line program via
LAUNCH EXTERNAL PROCESS route until we discovered a product called
"CloudBerry Drive" from CloudBerry Labs that "...seamlessly integrates
Amazon S3 as an external or network drive with the Windows environment".
[Unfortunately as you see, that product is windows only, but I think I read
somewhere they are working on a Mac solution; or there may be very similar
Mac solutions; or if not, it might be worthwhile moving some processes
involved to windows machines if you find it economically desirable for this
project.] You can name and place your picture into a folder within that
mounted drive (which is really an S3 bucket) directly from 4D - just as if
it were a local folder. This makes handling any files you work with this
way truly 4D native and easy to deal with, without messing with scripts and
external processes. Further, If you designate your S3 bucket to be an AWS
CloudFront type bucket, you will get a special ULR to that bucket (ex. "
https://edglgb5o46ay9.cloudfront.net";) - so if you save your data driven
invented path within a 4D Field (i.e.
"/myPictureFolder3/myfilename28.pdf"), you can simply append that 4D field
contents to your AWS cloudfront URL (i.e. "
https://edglgb5o46ay9.cloudfront.net/myPictureFolder3/myfilename28.pdf) to
provide a web link to that file within any document you generate (email,
web page, message, 4D database itself, etc) What you get in addition is
that AWS will immediately distribute "CloudFront" files to multiple
distribution centers so users are accessing the file from some hosting
center closest to them (for faster delivery), giving you "9 to the 9s" type
backup security since it now exists in multiple locations instead of one
repository. But more than that, you can mount that same S3 bucket as a
local drive on multiple servers simultaneously to give you access to the
same material from many different locations. In our case, for instance, we
have specialized office servers constantly converting milllions and
millions of county courthouse scanned tifs into PDFs. The PDFs are dropped
into the appropriate county S3 bucket folder using 4D data driven naming
conventions. Separate 4D driven (as well as non-4D) projects can then have
access to the same S3 bucket material to provide links or actual download
access from "local drive folders" for all kinds of in house routines or
external web browser user links. For us, it solved multiple logistical
issues and totally simplified (actually eliminated) a complex AWS S3 bucket
access scripting system.

I apologize for describing a windows solution to a mac question, but hope
it helps.

----------------------------
Steve Simpson
​Cimarron Software
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to