I am using tinymce to write some text and upload pictures to a website. I am using this:
tinymce.init({
selector: ".tinymyce",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen lineheight",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "preview media | forecolor backcolor lineheightselect fontsizeselect emoticons",
lineheight_formats: "8pt 9pt 10pt 11pt 12pt 14pt 16pt 18pt 20pt 22pt 24pt 26pt 36pt",
fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt',
font_formats: 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;AkrutiKndPadmini=Akpdmi-n',
image_advtab: true,
paste_data_images: true,
file_picker_callback: function(callback, value, meta) {
if (meta.filetype == 'image') {
$('#upload').trigger('click');
$('#upload').on('change', function() {
var file = this.files[0];
var reader = new FileReader();
reader.onload = function(e) {
callback(e.target.result, {alt: ''});
};
reader.readAsDataURL(file);
});
}
}
});
If I upload an small image this is storing ok to the database, but when I upload a very large imagen (8mb) is not storing on the database.
I am using PHP and with that textarea I also send more data. I output the whole POST and the only variable / field that is not sent is the textarea with TinyMce.
I change my php variables:
post_max_size = 1024M
upload_max_filesize = 1024M
max_input_vars = 500000
But still nothing. What could be the error?
Thanks.