>>  Site Map >>  Forums >>  Modules

Forum module - topics in forum:



Modules - Get help on installing any module or add-on here



Submit Downloads

I've tried searching all over for this and just can't find it anywhere!!!

I've got downloads working fine, but.... I want registered users to beable to submit a file into the downloads section. Obviously it would be checked by myself first and then allowed into the public view.

When I try to upload a zip file, it says...
Quote: :

ERROR: File Not Uploaded

I had a look at the download settings, there is only one place I can think of that might be causing this problem. The catagory setup...
Quote: :

Relative Path:

As far as I understood, a relative path is a path from which the root is not the website's root directory, but the directory that the script sits in?!?!? It that right? If I'm right then I can put /uploads in there. But where do I need this uploads folder to be? I have tried so far in Nuke's root directory, in the modules/Downloads directory and also in the Modules/Downloads/public directory. With all 3 I still get the same error.

I am using PHP Nuke Ultra 7.6, the one put together by NukeCode!!

Thanks in advance.

Smithster






I'll start in reverse... A relative path is the server path to a folder or file..

for example... /home/yoursite/public_html/downloads this would equate to
http://yoursite.com/downloads

that begin said and assuming you are allowing people to upload to the downloads folder, then the downloads folder must be executable by all or "777"






OK, I may sound like I'm retarded, but how do I allow people to upload files? All it's giving in the "Downloads" section is the option for a URL to an already existing file somewhere...I'd like to give ppl the option to upload files (file sharing) from their computer. I'm using phpnuke 8.0 with XP-Olive Theme.

Or do I need a different kind of downloads module installed to be able to allow this...??






OK, I'm retarded. I found the module that I needed to install for this.






OK, I'm feeling retarded again.

I'm getting an "upload error contact the site admin" type error message. I have the uploads file chmod 777

in the config file I have:

/home/user/public_html/website/uploads
http://mysite.com/uploads

Uploads is chmod 777

Nothing is getting uploaded.

I uploaded a "test" file. It said upload error and also "you didn't include an email address but we'll check your submission" which is right since I didn't put in an email address.

When I click the link to the title of the file, it takes me to the main page of the website. When I click the "download this file" it takes me to the main page of the site rather than download the file. When I click the "check" button, it takes me to the main page of the site rather than download the file (probably because I have error404 redirected to index.php thru .htaccess).

I checked the uploads directory and although the category directory was created and exists, the uploaded file does not. Not sure where I'm going wrong on this one.

And here's another problem: I can not delete the files that get created (directory 2 and inside that directory 0 which appears empty)! I went in thru FTP and can NOT delete the files off my server.






The problems the Submit Downloads module causes aren't worth what little usefulness it allows.

Ok let me start by saying I wouldn't be redirecting 404 to index.php in this case it can cause issues.

I will assume that you have replaced user with your actual user name in
Code: :
/home/user/public_html/website/uploads
and only posted it like this for security reasons.

Heres the main issue with using the Submit Downloads module and the reason you can't delete the files. Root (the server) is taking ownership of the files when you upload them through the script.

Remember this if a file size is greater then what php is allowing to be uploaded then you will get failures. I personally have ALWAYS found it easier and quicker to simply upload the file via FTP and type out the link to it in the Submit Downloads module. This way you are bypassing all of the headaches. Worst thin you have to deal with there is accidentally typing a link incorrectly.






Thanks so much. Yes, I like to put "mysite" and "user" in place of the actual information.

I'd like to have file sharing for my members since the site is about sewing and sometimes a person needs to upload a text file with instructions on how to construct a garment, or a pdf file or something like that, especially for pattern pieces. There won't be a lot of these kinds of files being uploaded by the members, however, it's a necessary evil.

I decided to go with NSN GR Downloads, which is working except for when you go to download the submitted file. The verification image isn't showing up.

This is the same download module that comes with 7.6 patched from this site. Once I realized it existed, I went and got the NSN GR Download module seperately for my 8.0 site and it installed just fine...however, on both sites, the download verification image isn't showing.

I'll do a forum search for that cos I'm sure I'm not the only one to have run into that problem.






Ok lets start with the image not displaying;

Open modules/downloads/public/gfx.php and find
Code: :
ImagePNG($image, '', 75);

Change it too:
Code: :
ImagePNG($image, '', 9);

That should fix that problem.

Now instead or putting all this
Code: :
/home/user/public_html/website/uploads

Just put "uploads" in the path.

I setup a test catagory on my site and allowed uploads put in the full path and it didn't work. So I replaced it strictly with the folder name and everything worked fine.






THANK YOU!!!!

Yeah, I figured out right after my last post that if I just put the name of the upload folder in there rather than the absolute or relative path, that it worked hella better...however...

...what's really odd is that this fix worked on my 8.0 site but not on the 7.6patched site.




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS