Replies
Hello Brajesh,
Thank you for taking the time to test the issue.
I am not sure if the issue you found is the same as the issue I am experiencing. Based on my tests, files larger (Eg 166mb) than the restriction (eg 10mb) gets successfully uploaded. But your description sounds like files smaller (eg >0.8mb but less than 2mb) than the restriction (2mb) gets uploaded.
In any case: my issue is, files larger than the storage restriction (sometimes significantly larger) is getting sucessfully uploaded. Particularly with image files, it seems you can upload an unlimited number of files that are larger than the restriction as long as you upload them one at a time. It also seems HOW the files are uploaded, affects whether certain files can get uploaded or not (as you can see in the video upload test, when I tried to upload the 19 and 60mb files at the same time, the 19mb video was successfully uploaded but the 60mb video was not, even though both are over the limit of 10mb, then, when I uploaded the 166mb video by it self in a new gallery, it was uploaded successfully, then uploaded the 19mb video separately to the sam gallery, the 19mb video did not get uploaded) These are the issues I am experiencing.
Also I am a little confused with your statement “I was not able to find any issue.” Was this a typo, should it say “I was not able to find any other issues.”? Because you also stated that you “do see one issue”. I ask this because I am not sure if there is a single issue causing all the symptoms I described in my test, or if it is more than one issue.
Thank you
StephanieHello Brajesh,
I wanted to provide some information from some tests I did.
I installed a fresh instance of Buddypress (Version 14.1.0) and Mediapress (Version 1.5.9) on a fresh installation of WordPress 6.6.2, and used a test user to create some test galleries. The storage limit is set to 10mb. I created test galleries for photos, audio, and video. I tested each media type one at a time, deleted the gallery, then tested the next one. No third party plugins except LiteSpeed Cache (Version 6.5.2) were activated.
Process:
1. Create a gallery for media type 1, eg photos.
2. Upload a bunch of files (or one at a time) until no more can be uploaded/storage quota is fully used.
3. Check how mnay mb’s worth of photos were uploaded by adding the file sizes of the uploaded files together or checking how large the file is.
4. Delete the entire gallery so the storage guota goes back to 100% of storage space is availableRepeat this process for Audio and Video.
Results:
Photos:
When I batch uploaded a group of small pictures (each up to 1mb in file size), 16mb’s worth of photos (8 files at the same time) were uploaded before the quota was reached and no more could be uploaded.When I uploaded a single picture of a large size (14.1mb), it was successfully uploaded. Then I tried to upload another photo to the same gallery, this time 8.12mb and it also uploaded successfully (14 + 8 is now 22mb, already more than twice the 10mb limit). I did this again by uploading a 11mb photo and it uploaded successfully too (total of 33mb). The quota message said “You have 17% of your 10MB space left”. I did not continue to see how many more image files I could upload in total using this method.
With this message showing, and without deleting anything, I created an audio gallery and successfully uploaded a 30mb audio file. The total uploaded size is now 63mb. I uploaded another audio file of 12mb, this one failed. The message at the bottom of the upload area says “Unable to upload. You have used the allowed storage quota!” but the message at the top still says “You have 17% of your 10MB space left” (had to refresh the page for it to change to “You have 0% of your 10MB space left”, so this might not be real time updated. This is not ideal but less of a problem than the storage quota exceeding, I just wanted to mention it so you know exactly what I experienced.
Next: Deleting the audio gallery so that only the image gallery remains reverts the quota message to “You have 17% of your 10MB space left” even though it had 33mb of files.
Audio files:
When I uploaded audio files (after deleting all galleries and starting over)- 15mb’s worth (2 files at the same time) were uploaded before the quota was reached.When I uploaded a single, large (30mb) audio file (after deleting all the galleries and starting over), it uploaded successfully, and the message at the top said “You have 0% of your 10MB space left” in real time wihtout needing to refresh the page. When I continued to upload another audio file of 12mb, it said the quota was reached and could not be uploaded.
Videos:
When uploading videos, again, more than 10mb was uploaded before the quota was reached. On three separate occasions (deleting the gallery in between and re-creating a new gallery), I uploaded a single video file, all more than 10mb: one that was 19mb, one that was 60mb, and one that was 166mb, all were successfully uploaded. When I deleted the gallery and tried to upload the 19 and 60mb files at the same time, the 19mb video was successfully uploaded but the 60mb video was not (quota reached). I tried one more time where I started a new video gallery, uploaded the 166mb video (successfully) then uploaded the 19mb video. This time, the 19mb video failed to upload.Summary:
It seems that when uploading pictures, you can upload individual files that are larger than the default storage limit, and can continue to do so without storage restrictions as long as you upload one at a time, but the same cannot be said for audio files and videos.Also, regardless of the medium, it seems that you can upload any sized file, even much larger than the limit, if you upload just 1 per upload.
The fact that 166mb’s worth of was able to be uploaded is not good – on a membership website (which is what Buddypress is for), if everyone did this, the storage space would run out quickly.
Thank you for reading
Hello Brajesh,
Sorry to open an old question.
Previously I uploaded images to Mediapress to test the storage quota restriction and the result was that the quota seemed to fill early unexpectedly even if the uploaded file size was smaller than the restriction eg it said it was filled at 3mb when the restriction was 5mb). The answer was that the storage looks at not just the size of the uploaded file, but the total stored items including subsizes of, say, thumbnails. This made sense.
However, I tested it again with audio files (without the third party storage limiter plugin) and I can upload more than the restricted amount ie I uploaded 15mb of files (one 7mb mp3 file, and one 8mb mp3 file) with a 10mb restriction, and only when I tried to upload a third file did it say I have run out of storage space.
As a reminder, I am the admin, it is a normal site (not a multisite), and I am using Litespeed cache. I now have WordPress 6.6.2 and Mediapress 1.5.9.
Thank youHi Ravi,
For the audio compatibility, I am not that familiar with sound hosting sites so don’t know a lot of them. I tested another random site, https://audio.com/ but it is also not supported. That is why I thought maybe rather than testing very single site I find, you would know which one might actually work. If not, I will just look for some sites and test them individually until I find one that works.
And as for the video, it works now. Oembed was already enabled but earlier there was no place to add the video link. I tested it now and it is all good.
Thank you
StephanieThank you Ravi for the explanation. In that case, is there another platform that Mediapress would support for attaching audio to via a link so users can attach audio files with? Also, I noticed that there is no function to add videos via a link on Mediapress. Will this be added in the future? Videos use even more space than audio so I would prefer not to allow video uploads or host it on my site.
Hello Brajesh,
Unforturnately I can’t activate debug mode for some reason. Could you simply tell me if I can safely manually delete the plugin folder from my wp-content/plugin directory? And would there be any undelted files in other folders and databases? I simply want to delete all the plugins and start over without deleting my site and starting from scratch.
Edit: In case it is relevant, I tried to activate debug mode by changing the
define( 'WP_DEBUG', false )
to true but this line wasn’t in the wp-config.php at all for some reason, so I added it manually and there was no effect.Thanks
- This reply was modified 2 months, 1 week ago by Stephanie. Reason: Add detail
I can’t edit my previous messages so here is a new one: I uploaded 3.48mb worth of images before I got the message “You have 0% of your 5MB space left”. I checked the folder, and 3 subsizes for each image was created, in the folder, there were 5.09MB of images. There are no adverse effects to the way images are displayed if I delete the excess subsizes, but, after I deleted the excess images, the total amount of space that the left over images take up is 4.03MB, which is less than the 5MB limit I set, yet on the front end, it still says “You have 0% of your 5MB space left”. I am testing this on a brand new installation of Buddypress so I don’t have any other non-Buddypress conflicting plugins. I’ve cleared the cache and logged out and back in.