HaschekSolutions / pictshare

:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
https://www.pictshare.net
Apache License 2.0
819 stars 123 forks source link

404 Error #90

Closed MachineGalaxy closed 4 years ago

MachineGalaxy commented 4 years ago

When I upload any file, it uploads successfully however when I try and load the image on the website. The link gives me a 404 error. Have I missed something in the installation to tell it the correct URL or am I just missing something?

config.inc.php:
<?php 
/**
 * All settings that are uncommented are mandatory
 * Others optional
 */

//Use a specific domain for links presented to the user
//Format: https://your.domain.name/
// MUST HAVE TAILING /
define('URL','https://img.serenitylabs.co.uk/');
define('LOG_UPLOADER', true);
define('TITLE', 'Serenity Labs Media Uploader');

//define('JPEG_COMPRESSION', 90);
//define('FFMPEG_BINARY','');
//define('ALT_FOLDER','/ftp/pictshare');
//define('ALLOWED_SUBNET','192.168.0.0/24');
geek-at commented 4 years ago

Are you using the docker image or on your own server?

If it's on your own check:

MachineGalaxy commented 4 years ago

Hi, Don't worry about it. I figured it out. For some reason, my https redirect was not working correctly and that was what was breaking everything. Thanks for the reply though.

Thanks Zak