Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-15-2008, 07:16 PM
YUGI is offline YUGI
Registered User

Join Date: Apr 2008
Posts: 1

PhUploader problem

Hello , i'm juste testing Phuploader 1.2

but i have a little problem, so if someone could help me , it would be appreciate

when i upload a file, files in uploads directory are chmoded 600 so don't have access to file in browser. so i have to chmod manually to read it.

So , script must chmod files to be read

how can i do it ? thanks
Reply With Quote
  #2  
Old 06-22-2008, 05:28 PM
robek401
Unregistered

Posts: n/a

This problem at me steps out also. Loaded files have chmod 600. Why do oneself so histories ? What would they make this to alter?
Reply With Quote
  #3  
Old 06-22-2008, 06:12 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,919

This is a common issue with linux and apache (actually a security feature) that I will have to remember to include with the next update. Here is the fix:

Near line 240:

After this bit of code:
PHP Code:
If($_FILES['file']['name'][$i]) {
                
    If(@
move_uploaded_file($_FILES['file']['tmp_name'][$i],$folder.$file_name[$i])) { 
Add this:
PHP Code:
@chmod($folder.$file_name[$i], 0755); 
Let me know if this solves your issue.
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PhUploader problem buggerwepisspoo phphq.Net Forums 0 09-21-2008 06:18 PM
phUploader sof-com phphq.Net Forums 1 05-25-2008 02:50 AM
phUploader help lodupersempre phphq.Net Forums 0 05-12-2008 08:30 AM
phUPLOADER Question Matraxx phphq.Net Forums 4 10-21-2007 09:05 PM
request for phuploader zabb phphq.Net Forums 2 05-08-2005 02:35 PM


All times are GMT -5. The time now is 05:36 PM.




Powered by vBulletin®