I have some problems with upload images.
This feature worked fine on development.
But I just found, when I upload images on staging, the images file name didn't change.
EX:
image-TheTimeWhenUpload.jpeg => 3218739217309438.jpeg?3712837
I expected when I upload successfully should be compiled and change it file name like above.
my paperclip setting upload to s3.
Actually I can find my upload images on s3, but I just can't find my images on staging.
I have no idea what happened to this,
hope somebody can give me some advise. Really Thanks.
CKEDITOR.plugins.addExternal(
"youtube",
"/assets/ckeditor/plugins/youtube/",
"plugin.js"
);
CKEDITOR.plugins.addExternal(
"filebrowser",
"/assets/ckeditor/plugins/filebrowser/",
"plugin.js"
);
CKEDITOR.plugins.addExternal(
"uploadimage",
"/assets/ckeditor/plugins/uploadimage/",
"plugin.js"
);
CKEDITOR.plugins.addExternal(
"image2",
"/assets/ckeditor/plugins/image2/",
"plugin.js"
);
CKEDITOR.plugins.addExternal(
"embedbase",
"/assets/ckeditor/plugins/embedbase/",
"plugin.js"
);
CKEDITOR.plugins.addExternal(
"embed",
"/assets/ckeditor/plugins/embed/",
"plugin.js"
);
CKEDITOR.plugins.addExternal(
"wordcount",
"/assets/ckeditor/plugins/wordcount/",
"plugin.js"
);
CKEDITOR.plugins.addExternal(
"notification",
"/assets/ckeditor/plugins/notification/",
"plugin.js"
);
CKEDITOR.editorConfig = function (config) {
// Define changes to default configuration here. For example:
config.language = 'zh_TW';
config.uiColor = '#AADC6E';
config.embed_provider = '//ckeditor.iframe.ly/api/oembed?url={url}&callback={callback}'
/* Filebrowser routes */
// The location of an external file browser, that should be launched when "Browse Server" button is pressed.
config.filebrowserBrowseUrl = "/ckeditor/attachment_files";
// The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Flash dialog.
config.filebrowserFlashBrowseUrl = "/ckeditor/attachment_files";
// The location of a script that handles file uploads in the Flash dialog.
config.filebrowserFlashUploadUrl = "/ckeditor/attachment_files";
// The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Link tab of Image dialog.
config.filebrowserImageBrowseLinkUrl = "/ckeditor/pictures";
// The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Image dialog.
config.filebrowserImageBrowseUrl = "/ckeditor/pictures";
// The location of a script that handles file uploads in the Image dialog.
config.filebrowserImageUploadUrl = "/ckeditor/pictures?";
// The location of a script that handles file uploads.
config.filebrowserUploadUrl = "/ckeditor/attachment_files";
config.allowedContent = true;
config.filebrowserUploadMethod = 'form';
config.toolbar_mini = [
["Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript"],
];
config.extraPlugins = 'youtube, image2, embedbase, embed, wordcount, notification';
// config.toolbar = "mini";
config.wordcount = {
// Whether or not you Show Remaining Count (if Maximum Word/Char/Paragraphs Count is set)
showRemaining: false,
// Whether or not you want to show the Paragraphs Count
showParagraphs: false,
// Whether or not you want to show the Word Count
showWordCount: false,
// Whether or not you want to show the Char Count
showCharCount: true,
// Whether or not you want to Count Bytes as Characters (needed for Multibyte languages such as Korean and Chinese)
countBytesAsChars: false,
// Whether or not you want to count Spaces as Chars
countSpacesAsChars: false,
// Whether or not to include Html chars in the Char Count
countHTML: false,
// Whether or not to include Line Breaks in the Char Count
countLineBreaks: false,
// Whether or not to prevent entering new Content when limit is reached.
hardLimit: false,
// Whether or not to to Warn only When limit is reached. Otherwise content above the limit will be deleted on paste or entering
warnOnLimitOnly: false,
// Maximum allowed Word Count, -1 is default for unlimited
maxWordCount: -1,
// Maximum allowed Char Count, -1 is default for unlimited
maxCharCount: 100,
// Maximum allowed Paragraphs Count, -1 is default for unlimited
maxParagraphs: -1,
// How long to show the 'paste' warning, 0 is default for not auto-closing the notification
pasteWarningDuration: 3000,
// Add filter to add or remove element before counting (see CKEDITOR.htmlParser.filter), Default value : null (no filter)
filter: new CKEDITOR.htmlParser.filter({
elements: {
div: function( element ) {
if(element.attributes.class == 'mediaembed') {
return false;
}
}
}
})
};
// ... rest of the original config.js ...
};
hi guys,
I have some problems with upload images. This feature worked fine on development. But I just found, when I upload images on staging, the images file name didn't change. EX:
image-TheTimeWhenUpload.jpeg => 3218739217309438.jpeg?3712837
I expected when I upload successfully should be compiled and change it file name like above. my paperclip setting upload to s3. Actually I can find my upload images on s3, but I just can't find my images on staging. I have no idea what happened to this, hope somebody can give me some advise. Really Thanks.please refer my config.js & log below: