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

SOLVED: Image upload #23

Open
gazzerman opened this issue Nov 1, 2016 · 1 comment
Open

SOLVED: Image upload #23

gazzerman opened this issue Nov 1, 2016 · 1 comment

Comments

@gazzerman
Copy link

gazzerman commented Nov 1, 2016

OK after wanting to throw my machine out the window I finally solved the issue everyone seems to have on here.

Its a messed up way to solve the issue but it works and maybe someone else can write some new code to make it neat again.

I uploaded the editor.html to the root directory, which overwrites the old one (make sure the fileuploadConfig is set to the correct directory)

Then I created /backend-php/ and uploaded just these 3 files, config.php, index.php and premailer.php

Then I created three directories in the root (permissions 0777)
/dl/
/img/
/upload/

Then I created a .htaccess file

RewriteEngine On RewriteRule (.*) /mosaico-master/backend-php/index.php [QSA,L]

And here is the bad coded bit, I uploaded .htaccess in each of those three directories I created (dl,img/upload).

Then it all worked.

So basically something is going wrong with the .htaccess file

Hope that saves someone else here the 6 hrs it took me to figure it out, lol

@perlpty
Copy link

perlpty commented Nov 7, 2016

excellent solution!!! It worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants