0

I am using the summernote text editor ( http://summernote.org/ )

As you can try there a way to upload images from your computer, can be tried on the website. I have then trouble saving these pictures to the server after the user sends the data of the textbloc .. What i did try was to capture the data uri with a regex, then code it with php into a file but that doesent work Wich is the best way to achieve this ?

Léo
  • 41
  • 4

1 Answers1

1

Probably this answer will help:

PHP Data-URI to file

You probably forgot to base64_decode the data?

Community
  • 1
  • 1
  • i tried with a test string, didn't work out I will try with what you sent and tell the result; in fact i was wondering if they were better ways of doing what i wanted, knowing that my method have backdraws like the unability to transmit these "links" with post variable unless i make their size bigger, wich is unsafe – Léo Jul 03 '16 at 19:19
  • Would you mind providing more details of what you tried and what failed? This would help in trying to help – Matteo Canever Jul 03 '16 at 19:22