Originally posted by: Sid59
try different FTPs?
Originally posted by: SaintGRW
so if when I get home from work and see that 50 people have each uploaded a file I have to go change the CHMOD to them myself.....
Originally posted by: SaintGRW
Originally posted by: Sid59
try different FTPs?
what effect would that have on the file being set at 600 when it's uploaded to my server?
Originally posted by: FFMCobalt
Originally posted by: SaintGRW
so if when I get home from work and see that 50 people have each uploaded a file I have to go change the CHMOD to them myself.....
If all the files you upload are all getting set to the same chmod and it's not the chmod you want, yes. The server hosting the files is probably setting the chmod upon file upload completion. Who cares who does it... someone has to change the chmod for each file uploaded. Yes, it's a pain in the ass. WTF are you doing anyway??
Originally posted by: SaintGRW
php
Originally posted by: GagHalfrunt
Originally posted by: SaintGRW
php
Then it's easy
chmod ($file, 644);
You just need to find the right spot in the script to add the line, and change $file to the right variable name.
Originally posted by: darktubbly
Line 123 of uploader.php.
After modifying, it should read something like...
else
{
chmod ($destination . $file['name'], 644);
$uploaded[$count]['name'] = $file['name'];
$uploaded[$count]['url'] = $url_path . $file['name'];
Originally posted by: FFMCobalt
Man, I was slow 😛 Darktubbly's got it.
Originally posted by: darktubbly
Line 123 of uploader.php.
After modifying, it should read something like...
else
{
chmod ($destination . $file['name'], 644);
$uploaded[$count]['name'] = $file['name'];
$uploaded[$count]['url'] = $url_path . $file['name'];
else
{
chmod ($destination, 644);
$uploaded[$count]['name'] = $file['name'];
$uploaded[$count]['url'] = $url_path . $file['name'];
$count++;
}
Originally posted by: SaintGRW
Originally posted by: darktubbly
Line 123 of uploader.php.
After modifying, it should read something like...
else
{
chmod ($destination . $file['name'], 644);
$uploaded[$count]['name'] = $file['name'];
$uploaded[$count]['url'] = $url_path . $file['name'];
else
{
chmod ($destination, 644);
$uploaded[$count]['name'] = $file['name'];
$uploaded[$count]['url'] = $url_path . $file['name'];
$count++;
}
Could not move "DSC01014.JPG" to the incoming directory.
🙁
Originally posted by: darktubbly
Yeah, I found my mistake too late...go back and change your directory to 777 manually, apply the correct line in the script, and try again. Sorry 'bout that.
Originally posted by: darktubbly
Yeah, I found my mistake too late...go back and change your directory to 777 manually, apply the correct line in the script, and try again. Sorry 'bout that.