Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to upload files #206

Closed
aristos32 opened this issue Feb 2, 2016 · 9 comments
Closed

how to upload files #206

aristos32 opened this issue Feb 2, 2016 · 9 comments
Labels

Comments

@aristos32
Copy link

I am sure that I am missing something very obvious, but I cannot understand how to upload a photo inside the editor.
What I do:

  • press 'image'
  • find the file
  • press send to server
  • press OK
    git2

But I get an error : 'image source URL is missing'

What else is needed? How will my route be called to debug it?

![git1](https://cloud.githubusercontent.com/assets/17019706/12741342/17c1649c-c984-11e5-824b-970f02da858a.png

@egeloen
Copy link
Owner

egeloen commented Feb 20, 2016

I'm sorry but I can't help you without more explanation. Have you followed these steps: https://github.com/egeloen/IvoryCKEditorBundle/blob/master/Resources/doc/file_browse_upload.md ?

@egeloen
Copy link
Owner

egeloen commented Feb 22, 2016

I have refined the doc in #213 I hope it is more clear now... If no, please re-open an issue as for me everything is working fine and without more explanation, I can't help.

@egeloen egeloen closed this as completed Feb 22, 2016
@aristos32
Copy link
Author

Hi Eric and thanks for your reply.

My issue is: I want to upload a file in the editor, not use the gallery. So
I don't need the 'browse' parameters, right?

So I set my upload routing only:
'filebrowserUploadRoute' =>
'GeneralGeneralBundle_account_profile_question_photo_upload',
'filebrowserUploadRouteParameters' => array('user_id' => '10',
'responseType' => 'json'),
'filebrowserUploadRouteAbsolute' => true,

But when I submit I get 'image source url is missing'.

Can you give me a configuration that will work, since I am missing
something obvious here.

Thank you!

On 22 February 2016 at 10:49, Eric GELOEN notifications@github.com wrote:

I have refined the doc in #213
#213 I hope it is
more clear now... If no, please re-open an issue as for me everything is
working fine and without more explanation, I can't help.


Reply to this email directly or view it on GitHub
#206 (comment)
.

The greatest enemy of knowledge is not ignorance, it is the illusion of
knowledge

  • Stephen Hawking

@egeloen egeloen reopened this Mar 7, 2016
@egeloen
Copy link
Owner

egeloen commented Mar 7, 2016

If you can fork my Symfony SE from this branch (https://github.com/egeloen/symfony-standard/tree/ckeditor) and add your code to reproduce your issue, you're awesome! It will be more rapid for me to debug it otherwise I will need to boostrap all the upload and the code in a new branch to give it a try...

@aristos32
Copy link
Author

Hi Erik.

I am not so familiar with github and I hope I did what you ask me to do.

I created a new file QuestionType in my fork root.

My issue is: I want to upload a file in the editor, not use the gallery. So
I don't need the 'browse' parameters, right?

But when I submit I get 'image source url is missing'.

Please let me know if i need to do something different.

thanks
Aristos

On 7 March 2016 at 12:52, Eric GELOEN notifications@github.com wrote:

If you can fork my Symfony SE from this branch (
https://github.com/egeloen/symfony-standard/tree/ckeditor) and add your
code to reproduce your issue, you're awesome! It will be more rapid for me
to debug it otherwise I will need to boostrap all the upload and the code
in a new branch to give it a try...


Reply to this email directly or view it on GitHub
#206 (comment)
.

The greatest enemy of knowledge is not ignorance, it is the illusion of
knowledge

  • Stephen Hawking

@egeloen
Copy link
Owner

egeloen commented Mar 22, 2016

@aristos32 Nice if you have forked my repository :) Can you give ma a link pointing to your branch?

@napestershine
Copy link

@aristos32 Are you looking for drag and drop kind of functionality?

@aristos32
Copy link
Author

@napestershine yes . But still cannot upload to my server. I tried add-ons uploadimage and uploadwidget. If you can suggest a successful configuration it would be great.

@egeloen attached you can find my form/type file
QuestionType.txt

@egeloen
Copy link
Owner

egeloen commented Apr 25, 2016

So after looking to your issue, the issue you got is "normal". When you integrate an upload feature in CKEditor, the url field is not automatically populated as CKEditor does not know where you have stored your images (it can be a different server than the one used for rendering your page).

So, knowing that, it's up to you to manage the url propagation into the url field. Take a look here, everything is explained.

Closing as there is nothing wrong in the bundle.

@egeloen egeloen closed this as completed Apr 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants