samerton / Nameless-Resources

Resources module for NamelessMC v2
MIT License
10 stars 12 forks source link

Users can't upload files #21

Open ItzPeto opened 3 years ago

ItzPeto commented 3 years ago

Hello, it seems that theres a bug in the Resources module:

Users cant upload files. The module has access to uploads folder and ive even increased the upload limit but it always just refreshes the page when uploading. And the external link choice does not work and simply redirects to upload site.

samerton commented 3 years ago

Hi, which template are you using? Could you try with the Default Revamp template if you're using something else?

ItzPeto commented 3 years ago

Im already using the DefaultRevamp template.

BrayaanPS commented 3 years ago

Hi, I'm still having that problem, there is a way to solve it

partydragen commented 3 years ago

@BrayaanPS @ItzPeto Can you guys try to add the fix i did here https://github.com/samerton/Nameless-Resources/commit/050ff7e4290276637959710c7a949b439c3e01a9 so we can confirm this fixing the issue

Im pretty sure it sounds like the issue i had a long time ago

samerton commented 3 years ago

@partydragen's fix is available for testing in release 1.2.1: https://github.com/samerton/Nameless-Resources/releases/tag/v1.2.1

BrayaanPS commented 3 years ago

As soon as I update my site to the new version I tell you how it goes!

BrayaanPS commented 3 years ago

Hello, the problem is still there @samerton

partydragen commented 3 years ago

it still just refresh or you get a file size limit error?

BrayaanPS commented 3 years ago

Still refreshing the page

ItzPeto commented 3 years ago

Same here, after updating it seems like nothing changed. The upload system is broken as stated above and after choosing external link option it redirects to upload.

partydragen commented 3 years ago

Thats weird, You guys do create a new resource right as i see i forgot to update when updating a resource

BrayaanPS commented 3 years ago

Here you can record a video of what happens when you upload a resource

Default theme (the page remains loaded, and stays that way all the time): https://youtu.be/_BaowZ7gJAw SkyFall theme (the page will be refreshed when it is uploaded): https://youtu.be/VkT7nOb1Oa0

partydragen commented 3 years ago

Thats very weird it being stuck in loading

ItzPeto commented 3 years ago

For me it is really similar but it refreshes back to the upload button. (Dont mind the dark mode, its only a browser extension and i tried this without it, same result)

Heres the video with Default theme: https://southcraft.cz/files/resources_report.mp4

EDIT: Also heres what happens when i choose external download link: https://southcraft.cz/files/resources_report2.mp4

BrayaanPS commented 3 years ago

I just tried uploading a light file (it was a .zip text document), and it worked, but when I try to upload something heavier the page refreshes (approximately 15mb passes that)

BrayaanPS commented 3 years ago

My problem I solved, was to change some settings from my cpanel panel. Here's how to solve it: