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

Thumbnails seem not to work #26

Open
asbag opened this issue Feb 1, 2017 · 2 comments
Open

Thumbnails seem not to work #26

asbag opened this issue Feb 1, 2017 · 2 comments

Comments

@asbag
Copy link

asbag commented Feb 1, 2017

Hello everybody!!

I'm facing one problem when I try to browse thumbnails in image gallery. This is the post the web send:
http://url//upload/thumbnails/image.png "404 not found"

These are my config variables:
editor.html
...
var ok = Mosaico.init({
imgProcessorBackend: 'img/',
emailProcessorBackend: 'dl/',
titleToken: "Mosaico Email Designer",
fileuploadConfig: {
url: 'upload/',
// messages??
}
});

backend-php/index.php

$request_handlers = [
	"upload/" => "ProcessUploadRequest",
	"img/" => "ProcessImgRequest",
	"dl/" => "ProcessDlRequest",
];

The rest of upload images work properly, the problem is only with gallery thumnails.

Is there anything I'm missing?

Thanks a lot.

@markalston
Copy link

upload isn't where the files are kept. They are in the folder uploads. upload is strictly a handler location to trigger either the generation of the thumbnails and resizing of the original image and/or getting a list of all the currently uploaded files by going to /upload without any parameters.

try looking for your file in /uploads/thumbnails/image.png

That said, I'm surprised you got this backed working that far. I forked and fixed a bunch of stuff as I uploading didn't work properly for me and downloading failed completely to rewrite the urls. Anyway, I do have a fork over at https://github.com/markalston/mosaico-php-backend

My fork removes the custom editor.html and correctly resizes the images and uploads them properly. It also allows for the ability to use a different base url for serving images in your final newsletter. I hope to have backend saving and loading working soon as well.

@asbag
Copy link
Author

asbag commented Feb 6, 2017

you are right, thank you so much !!

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