Skip to content

Can't send images to server #10

Open
@ewarman

Description

@ewarman

Hey Michael,
I can't upload images to the server using CKEditor. I've tried two ways. The first way is Image Properties>Image Info>Browse Server. When I click the Upload button, the file appears but the progress wheel spins indefinitely. When I exit and browse again, the file doesn't appear. Here's a screenshot of the upload window:
screen shot 2017-03-25 at 11 12 33 pm

The second way is Image Properties>Upload. When I upload a file and click "Send it to the Server", I see the error below:
screen shot 2017-03-25 at 11 12 52 pm

Here's a copy of my rails server output when I try to upload an image:

Started POST "/ckeditor/pictures?CKEditor=post_content&CKEditorFuncNum=1&langCode=en" for ::1 at 2017-03-25 23:12:49 -0400
Processing by Ckeditor::PicturesController#create as HTML
  Parameters: {"upload"=>#<ActionDispatch::Http::UploadedFile:0x007fe4c18e4150 @tempfile=#<Tempfile:/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/RackMultipart20170325-30154-1ec3e17.JPG>, @original_filename="IMG_4014.JPG", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"upload\"; filename=\"IMG_4014.JPG\"\r\nContent-Type: image/jpeg\r\n">, "ckCsrfToken"=>"c4ce897nWt04M9etRC8nEtDTdYYhwhbx35TU9R3C", "CKEditor"=>"post_content", "CKEditorFuncNum"=>"1", "langCode"=>"en"}
  Monologue::User Load (0.3ms)  SELECT  "monologue_users".* FROM "monologue_users" WHERE "monologue_users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade.JPG[0]' 2>/dev/null
Command :: identify -format %m '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade.JPG[0]'
Command :: convert '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade.JPG[0]' -auto-orient -resize "800>" '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade20170325-30154-1hrktrb'
Command :: file -b --mime '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade20170325-30154-1hrktrb'
Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade.JPG[0]' 2>/dev/null
Command :: identify -format %m '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade.JPG[0]'
Command :: convert '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade.JPG[0]' -auto-orient -resize "118x" -crop "118x100+0+28" +repage '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade20170325-30154-1cvyvn'
Command :: file -b --mime '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-n8ade20170325-30154-1cvyvn'
   (0.2ms)  BEGIN
Command :: file -b --mime '/var/folders/lq/xp1mhyxx2fsgxflzhkvjhnx0fzpr6k/T/665e16de948b4482d60a7fc13b64221b20170325-30154-14gp149.JPG'
   (0.2ms)  ROLLBACK
DEPRECATION WARNING: `render :text` is deprecated because it does not actually render a `text/plain` response. Switch to `render plain: 'plain text'` to render as `text/plain`, `render html: '<strong>HTML</strong>'` to render as `text/html`, or `render body: 'raw'` to match the deprecated behavior and render with the default Content-Type, which is `text/html`. (called from call at /Users/ewarman/.rvm/gems/ruby-2.3.0@global/gems/rack-2.0.1/lib/rack/etag.rb:25)
  Rendering text template
  Rendered text template (0.0ms)
Completed 200 OK in 459ms (Views: 0.7ms | ActiveRecord: 0.7ms)

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions