Fix file upload size limits and toast messages on failure

This commit is contained in:
ilham_gmail
2026-06-11 19:43:52 +07:00
parent 0593d25080
commit 3b62f71946
4 changed files with 34 additions and 13 deletions
+4
View File
@@ -15,4 +15,8 @@ RUN rm -f /var/www/html/uploads && mkdir -p /var/www/html/uploads
# Set ownership and permissions for uploads directory
RUN chown -R www-data:www-data /var/www/html && chmod -R 775 /var/www/html/uploads
# Increase PHP upload and post size limits
RUN echo "upload_max_filesize = 10M" > /usr/local/etc/php/conf.d/uploads.ini \
&& echo "post_max_size = 10M" >> /usr/local/etc/php/conf.d/uploads.ini
EXPOSE 80