Re: Best way to share large files with web users

2018-06-29 Thread JOHN BAUGHMAN via 4D_Tech
Kirk, no I am not concerned about the cost. Just trying to understand how it works. The decision has been made to forge ahead using S3. Before I create an account for development I want to be sure that I am not painting my self into a corner which is what I gleaned from your warning. After

Re: Best way to share large files with web users

2018-06-29 Thread Kirk Brooks via 4D_Tech
John, Lee is right. The cost isn't really an issue. It's that once you setup stuff in 'your' account it's there. It can be moved but this could be tedious. I'm a big fan of the separation of church and state so I prefer to be able to let my client 'stuff' be separate from my personal 'stuff'.

Re: v13 - Text entry area, Returns, and Filters

2018-06-29 Thread Jeremy French via 4D_Tech
Hi Chip, I forgot to add there are 2-starting characters for the filter: 1) tilde forces uppercase; while 2) ampersand does not fore uppercase. - Jeremy French > On Jun 29, 2018, at 12:39 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Not working :( > I can not entry a

Re: v13 - Text entry area, Returns, and Filters

2018-06-29 Thread Jeremy French via 4D_Tech
Hi Chip, Try defining the filter using the following pattern: 1) first character is the tilde character; then 2) starting quote character (escaped); then 3) allowed characters in filter, separated with semicolons; then 4) ending double quote character (escaped). The following example allows

Re: Trouble Decoding Base64 Text

2018-06-29 Thread Bruno LEGAY via 4D_Tech
Hi, Base64 encoded data has a length which is multiple of 4. If not, it should be padded with "=" (1 to 3 "=") Your data is not strict base64 as it does not follow this. Looks like 4D does not like when it is not padded. // pad with "=" to make text a multiple of 4 C_LONGINT($vl_padModulo)

Re: Components and Execute Formula

2018-06-29 Thread Chip Scheide via 4D_Tech
Thanks! the example was typed in email so it was just something off the top of my head. What about access to 'special' sets UserSet and LocalSet? any idea? Chip On Fri, 29 Jun 2018 15:49:15 -0300, Julio Carneiro via 4D_Tech wrote: > Chip, > > Your specific example would not work, because

Re: Components and Execute Formula

2018-06-29 Thread Julio Carneiro via 4D_Tech
Chip, Your specific example would not work, because “My_execute” would not have access to the calling method’s local variables. That is not a component issue, that would not work even if My_execute were a local method :-( Now to answer your question, yes a Component method can issue an Execute

Re: Best way to share large files with web users

2018-06-29 Thread Lee Hinde via 4D_Tech
The cost for S3 is minimal. Especially for dev use where you can control file size. It'll be pennies. On Fri, Jun 29, 2018 at 9:34 AM JOHN BAUGHMAN via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > > On Jun 29, 2018, at 6:01 AM, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > >

Re: v13 - Text entry area, Returns, and Filters

2018-06-29 Thread Chip Scheide via 4D_Tech
Not working :( I can not entry a return into the text area. I have this line of code in my form method: utl_text_Text_Entry_Filter (->[Department]Address) //(m) utl_text_Text_Entry_Filter //$1 - pointer - to text entry area C_POINTER($1;$Text_Area) C_TEXT($Filter;$0) $Text_Area:=$1

Re: Best way to share large files with web users

2018-06-29 Thread JOHN BAUGHMAN via 4D_Tech
> On Jun 29, 2018, at 6:01 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > although you only ever get one year free. I was thinking that if I use my personal account or create a new account in my company name and use it for development, I could then for deployment create a

Re: Best way to share large files with web users

2018-06-29 Thread Kirk Brooks via 4D_Tech
John, On Thu, Jun 28, 2018 at 9:37 PM JOHN BAUGHMAN via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > One tip - and I think Bruno says this to in his docs - setup a > > 'development' bucket to use for testing. > > I am not following you. Watching Bruno’s demo it looked like one > could have

Re: Components and Execute Formula [followup]

2018-06-29 Thread Chip Scheide via 4D_Tech
additional question regarding host/component communication. "Special" sets of the host, like: UserSet and LockedSet are these available to a component, or would the contents of these sets need to be copied into a 'real' set ("$My_set" or "My_Set"), and the set name passed to the component?

Components and Execute Formula

2018-06-29 Thread Chip Scheide via 4D_Tech
I have some code I would like to put into a component.. but... I am uncertain how it will interact with the host. The method, uses Execute Formula. The method takes a text parameter which is a bit of code to execute. In it's current use (in the host) the text is most often a an apply to

Re: Trouble Decoding Base64 Text

2018-06-29 Thread Dave Nasralla via 4D_Tech
Nevermind, though I'm not entirely sure this isn't a kind of bug. If you change the Encoding by adding two equal signs to the end "eyJ1c2VySWQiOiJiMDhmODZhZi0zNWRhLTQ4ZjItOGZhYi1jZWYzOTA0NjYwYmQifQ==" It properly decodes to: {"userId":"b08f86af-35da-48f2-8fab-cef3904660bd"} Some online decoding

Trouble Decoding Base64 Text

2018-06-29 Thread Dave Nasralla via 4D_Tech
Can anyone tell me what I am doing wrong here. In the code below I am getting back the same text I and trying to decode. C_BLOB($Blob_vx) C_TEXT($EncodedText_vt) $EncodedText_vt:="eyJ1c2VySWQiOiJiMDhmODZhZi0zNWRhLTQ4ZjItOGZhYi1jZWYzOTA0NjYwYmQifQ" TEXT TO BLOB($EncodedText_vt;$Blob_vx;UTF8 text

Re: Best way to share large files with web users

2018-06-29 Thread Bruno LEGAY via 4D_Tech
Hi John, In the demo, take a look at AWS_S3_uploadFile, which will call AWS_S3__uploadFileMultipart for files which are bigger than 10 Mb... Chunks have a minimal size of 5242880 bytes (5Mb). This is done transparently when calling AWS_S3_uploadFile.. This code is not integrated in the

RE: STARTTLS - send secure email 4D v15.5

2018-06-29 Thread jarosz via 4D_Tech
Hello Mike Many thanks for your code. I wonder, have you ever used it with: $error:=SMTP_Send ($smtp_id;1) // to force use of ssl? It's when I do this that I get the timeout error and no send. Michael Jarosz -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html