Добрый день,
я новичок в друпал, прошу строго не судить
не работает прикрепление файлов через форму создания ноды.
Как таковую ошибку не выдает, появляется прогресс-бар загрузки, после чего сразу же код
{ "status": true, "data": "\x3cdiv id=\"edit-field-story-files-0-ahah-wrapper\"\x3e\x3cdiv class=\"form-item\" id=\"edit-field-story-files-0-upload-wrapper\"\x3e\n \x3cdiv class=\"filefield-element clear-block\"\x3e\x3cdiv class=\"widget-preview\"\x3e\x3cdiv class=\"filefield-file-info\"\x3e\x3cdiv class=\"filename\"\x3e\x3cdiv class=\"filefield-file\"\x3e\x3cimg class=\"filefield-icon field-icon-application-vnd.openxmlformats-officedocument.wordprocessingml.document\" alt=\"application/vnd.openxmlformats-officedocument.wordprocessingml.document icon\" src=\"http://sakha.gov.ru/sites/all/modules/filefield/icons/x-office-document.png\" /\x3e\x3ca href=\"http://sakha.gov.ru/sites/default/files/test_7.docx\" type=\"application/vnd.openxmlformats-officedocument.wordprocessingml.document; length=0\"\x3etest.docx\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"filesize\"\x3e0 байт\x3c/div\x3e\x3cdiv class=\"filemime\"\x3eapplication/vnd.openxmlformats-officedocument.wordprocessingml.document\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"widget-edit\"\x3e\x3cinput type=\"hidden\" name=\"field_story_files[0][UPLOAD_IDENTIFIER]\" id=\"edit-field-story-files-0-UPLOAD-IDENTIFIER\" value=\"ab28c5bf13a681259972b296d706b456\" class=\"filefield-progress\" /\x3e\n\x3cinput type=\"hidden\" name=\"field_story_files[0][fid]\" id=\"edit-field-story-files-0-fid\" value=\"264652\" /\x3e\n\x3cdiv class=\"form-item\" id=\"edit-field-story-files-0-data-description-wrapper\"\x3e\n \x3clabel for=\"edit-field-story-files-0-data-description\"\x3eОписание: \x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"600\" name=\"field_story_files[0][data][description]\" id=\"edit-field-story-files-0-data-description\" size=\"60\" value=\"\" class=\"form-text\" /\x3e\n\x3c/div\x3e\n\x3cinput type=\"hidden\" name=\"field_story_files[0][list]\" id=\"edit-field-story-files-0-list\" value=\"1\" /\x3e\n\x3cinput type=\"submit\" name=\"field_story_files_0_filefield_remove\" id=\"edit-field-story-files-0-filefield-remove\" value=\"Удалить\" class=\"form-submit\" /\x3e\n\x3c/div\x3e\x3c/div\x3e\n\x3c/div\x3e\n\x3c/div\x3e\x3cscript type=\"text/javascript\"\x3ejQuery.extend(Drupal.settings.ahah, { \"edit-field-story-photo-0-filefield-upload\": { \"url\": \"/filefield/ahah/story/field_story_photo/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-story-photo-0-ahah-wrapper\", \"selector\": \"#edit-field-story-photo-0-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"bar\", \"path\": \"filefield/progress/f1d3704c68caa6db9de844e795f63fcb\", \"url\": \"/filefield/progress/f1d3704c68caa6db9de844e795f63fcb\" }, \"button\": { \"op\": \"Загрузить\" } }, \"edit-field-story-photo-0-filefield-remove\": { \"url\": \"/filefield/ahah/story/field_story_photo/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-story-photo-0-ahah-wrapper\", \"selector\": \"#edit-field-story-photo-0-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_story_photo_0_filefield_remove\": \"Удалить\" } }, \"edit-field-story-photo-1-filefield-upload\": { \"url\": \"/filefield/ahah/story/field_story_photo/1\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-story-photo-1-ahah-wrapper\", \"selector\": \"#edit-field-story-photo-1-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"bar\", \"path\": \"filefield/progress/152bf203d8df7e3287d325dc0173af7a\", \"url\": \"/filefield/progress/152bf203d8df7e3287d325dc0173af7a\" }, \"button\": { \"op\": \"Загрузить\" } }, \"edit-field-story-photo-1-filefield-remove\": { \"url\": \"/filefield/ahah/story/field_story_photo/1\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-story-photo-1-ahah-wrapper\", \"selector\": \"#edit-field-story-photo-1-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_story_photo_1_filefield_remove\": \"Удалить\" } }, \"edit-field-story-files-0-filefield-upload\": { \"url\": \"/filefield/ahah/story/field_story_files/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-story-files-0-ahah-wrapper\", \"selector\": \"#edit-field-story-files-0-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"bar\", \"path\": \"filefield/progress/ab28c5bf13a681259972b296d706b456\", \"url\": \"/filefield/progress/ab28c5bf13a681259972b296d706b456\" }, \"button\": { \"op\": \"Загрузить\" } }, \"edit-field-story-files-0-filefield-remove\": { \"url\": \"/filefield/ahah/story/field_story_files/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-story-files-0-ahah-wrapper\", \"selector\": \"#edit-field-story-files-0-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_story_files_0_filefield_remove\": \"Удалить\" } }, \"edit-field-story-files-1-filefield-upload\": { \"url\": \"/filefield/ahah/story/field_story_files/1\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-story-files-1-ahah-wrapper\", \"selector\": \"#edit-field-story-files-1-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"bar\", \"path\": \"filefield/progress/201ad0840f66922d0e592f814eb69e22\", \"url\": \"/filefield/progress/201ad0840f66922d0e592f814eb69e22\" }, \"button\": { \"op\": \"Загрузить\" } }, \"edit-field-story-files-1-filefield-remove\": { \"url\": \"/filefield/ahah/story/field_story_files/1\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-story-files-1-ahah-wrapper\", \"selector\": \"#edit-field-story-files-1-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_story_files_1_filefield_remove\": \"Удалить\" } } });\x3c/script\x3e" }
прошу прощения за громоздкость
Вложение | Размер |
---|---|
oshibka.jpeg | 485.28 КБ |
Комментарии
При дальнейшем разборе выяснил, что файл на ftp загружается, но форма обработки прикрепленных файлов не появляется
Вопрос неакутален, решение нашел