What is WebDNA
WebDNA and BioType
Download WebDNA
WebDNA resources
On 14 Dec 2016, at 16.08, Tom Duke <tom@revolutionaries.ie> wrote:Palle,Set =your 'imageUploadURL' to a WedDNA page.Then on that page =add a [sendmail] to yourself with a [formvariables] in the body of =the email:[sendmail to=3Dmyemail@email.com&from=3Dfroala@email.com &subject=3DFroalaEditor Upload Params] [formvariables][name]:[value]<br =/> [/formvariables] [/sendmail]
So I stated a project page where a lot is =running as it should.Current problem is that I need to make the form accept the =drag/drop image into the Textarea form which is supported by Froala. It =depends on some JS code=E2=80=A6imageUploadParam: ='file_name',imageUploadURL: ='/dev/froala/image',imageUploadMethod: ='PUT',imageMaxSize: 1024 * 1024 * =3,imageAllowedTypes: ['jpeg', ='jpg', 'png'],How can i =extract the =E2=80=9CimageUploadParam=E2=80=9D into WebDNA and how do I =catch and store it=E2=80=A6?=E2=80=9C...The upload flow for the =image is quite simple and it is explained here: https://www.froala.com/wysiwyg-editor/docs/concepts/im . =First of all you have to tell the editor where to make the upload =request (imageUploadURL). Then, your server should catch the request, =store the image and then return a response in JSON format that looks =like this: { link: 'path/to/image.jpg' }=E2=80=A6"age/upload If you have anything to =add/contribute or just being helpful then visits http://www.qt.dk/dev/froala/image/ (id= and pass is lowercase =E2=80=98a=E2=80=99).------------------------------/Palle------------------------------On 17 =Nov 2016, at 07.55, Stuart Tremain <webdna@idfk.com.au> wrote:Hey PalleI had a bit of a look at this, it seems =that Froala want a JSON response: such as {"link":"https://i.froala.com/download/6143ec97622356aaeb =E2=80=9D}01df3b648b11a0f3176636.jpg? 1479365089 You can see this by viewing what the =AJAX is returning.I did have a bit of trouble making JSON work properly on a =server a while ago, the response needs to be handled properly through =Apache & webdna without any spaces at the beginning. If you have =problems, I will have a dig around for what I did to fix it for a system =that I developed.On 7 Nov. 2016, at 02:15, Palle Bo Nielsen <powerpalle@powerpalle.dk> wrote:------------------------------Evening allSome of you might know the Froala Javascript Editor which in =my opinion is a great editor. The editor enabled a lot of function =within a textarea which for me works great. One of the function where I =have not been able to make it work is the the image function where you =can drag and drop an image to the textarea - the image is being uploaded =and displayed in the textarea. The reason for me not being able to make =it work is that the Froala Editor expects some handling server side and =I can not figure it out. The great thing is that I have WebDNA to =provide me with the server side stuff; the bad thing is that I can not =see what is needed.Any care to join me in making it happen?The result could be used =by Froala as an official WebDNA SDK just as an PHP has been published. =This could benefit the WebDNA community.I hope for a positive response :)/Palle---------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal k@webdna.us Bug Reporting: support@webdna.us---------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal k@webdna.us Bug Reporting: support@webdna.us---------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal k@webdna.us Bug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...