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

Huge pictures are being uploaded but the script breaks #1

Open
carlosloco opened this issue Dec 24, 2014 · 1 comment
Open

Huge pictures are being uploaded but the script breaks #1

carlosloco opened this issue Dec 24, 2014 · 1 comment

Comments

@carlosloco
Copy link

I like the enhanced Album module and I experienced an issue regarding the upload of the Picture. The used files were about the size of 1,4 mb. I could not experience the issue by uploading files like 500kb.

The files were finally uploaded to /data/settings/modules/Albums/ but won't neither be found in Album admin nor be displayed anywhere.Thumbnails were not generated too.

Kind regards carlosloco and merry Christmas

@ekyo-pl
Copy link
Contributor

ekyo-pl commented Jan 14, 2015

I'm not sure if its for album module only or for album-enhancements.

I think its server limitation for file upload.

Mabey something like this?
if (in_array($_FILES['imagefile']['type'], array('image/jpeg', 'image/pjpeg', 'image/png', 'image/gif')) && (min((int)(ini_get('upload_max_filesize')), (int)(ini_get('post_max_size')), (int)(ini_get('memory_limit'))) * 1024 > $_FILES['imagefile']['size'])) {....

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