• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

use amazon s3,complete picture page 404

Status
Not open for further replies.

jiajieit

Chevereto Member
Hello, Rodolfo,

About 404 issues a complete picture page appears amazon s3。

I use amazon s3 After setting, with their own domain "storage2.imgchr.com" cname to "storage2.imgchr.com.s3-website-ap-northeast-1.amazonaws.com.", Appears in chevereto complete picture page 404, image source link normal access.

chevereto storage settings are as follows;
amazon s3 url set to "http://storage2.imgchr.com.s3-website-ap-northeast-1.amazonaws.com." After,

Full image page https://imgchr.com/image/zx8 normal visit, page source image file url link to http://storage2.imgchr.com.s3-website-ap-northeast-1.amazonaws.com/P1100683.jpg normal.

When I want to amazon s3 url set to "storage2.imgchr.com" after,

Full image page https://imgchr.com/image/zx8 access fault display page 404, page source image file url link to http://storage2.imgchr.com/P1100683.jpg display normal (direct access to the normal link ).

Link image is accessible, but do not know why there is an 404 error in chevereto image page.

Source file link, test ok
QQ截图20160903203432.jpg

"/explore" page picture shows the normal,test ok
QQ截图20160903203556.jpg

"/image/zx8" page picture shows a 404 error
QQ截图20160903203613.jpg

My amazon s3 external storage settings
QQ截图20160903203645.jpg


I hope to help solve this problem, thank you!
 
The problem is the built-in system that checks if the remote image exists or not. You will need to turn it off from route.image.php
 
The problem is the built-in system that checks if the remote image exists or not. You will need to turn it off from route.image.php

Yes, I comment out the following code, this problem has been resolved. Another proposal to add a feature to a specific user to manually assign storage nodes.

PHP:
// No image or belongs to a banned user if exists?
//if(!$image || (!$logged_user['is_admin'] && $image['user']['status'] == 'banned')) {
//    return $handler->issue404();
//}

Thinkyou!
 
Status
Not open for further replies.
Back
Top