App Connect Medium Editor Image Upload Add-on Support Product Page

Answered

Missing documentary on database save

Asked 15 Dec 2017 03:39:54
1
has this question
15 Dec 2017 03:39:54 Greta Garberini posted:
Hi,
I just grew another grey hair on a missing documentary - topic concerning an input (or update) record form. At least it was missing for me but just in case it helps, I'd like to share this
  1. I had an autogenerated input record form with two file fields, one text-input, a select and a textarea field; then I wanted to add more functionality to the text area field for more formatting and embedded images; therefore I added Medium Editor plus the Image-Addon in AppConnect
  2. Then I added all the functionality as described in the "Upload, Resize and Insert Images in App Connect Medium Editor-video" and packed it into the existing Server Action for the input record form, just before it's final (database insert) step. And that's where it all went wrong, even broke the insert record form functionality:
  3. The image-addon requires a brand-new, extra Server Action just for the Image Upload Add-on for Medium Editor. Before this realization I always had gotten "Error on image Upload" although the image-upload had worked and was stored in the correct place. But the insert record step had stopped working.

  4. As mentioned, I hope it helps someone who got the same problem.

Replies

Replied 15 Dec 2017 08:01:48
15 Dec 2017 08:01:48 Teodor Kuduschiev replied:
Hello Greta,
Of course the image upoad add-on requires its own server action for uploading and processing the image.
Insert record step has nothing to do with this server action. The inser record action is the same for any type of form/fields and it it doesn't matter if you are using it with medium editor or not - this is just a text-area.
Replied 15 Dec 2017 09:19:30
15 Dec 2017 09:19:30 Greta Garberini replied:
Yes, now I can see why it is important.
Maybe I still had in mind one of the older (data-bindings) videos where we were told that one can combine several actions into one Server Action file.
Anyway, thanks for the clarification.

Best,
Greta
Replied 15 Dec 2017 09:40:02
15 Dec 2017 09:40:02 Teodor Kuduschiev replied:
You can still combine different actions in one action file.
This is different - you need the separate upload action just for the medium, so it can upload the image and place it in the content.
The other action is for sending the form data to the database, and it is applied on form submit.

Reply to this topic