Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2012-03-16 00:27:58

Jeff
Member
Registered: 2012-02-14
Posts: 39

upload a picture for thumbnail

I wanted to upload a picture as thumbnail, but I got access denied, and error message "The filename provided is not being accepted by the server".
How do I fix this? If I can upload from the controller panel would be nice. smile

Offline

#2 2012-03-16 01:09:04

THS
Member
Registered: 2012-02-02
Posts: 313
Website

Re: upload a picture for thumbnail

Is the tmp and media folder set for chmod 755?

Offline

#3 2012-03-16 05:04:17

Jeff
Member
Registered: 2012-02-14
Posts: 39

Re: upload a picture for thumbnail

yes, the folders is set to 755, but I found the picture is set to 644.
I tried to change it to chmod 755, but I got no permission message.

Last edited by Jeff (2012-03-16 05:08:12)

Offline

#4 2012-03-16 06:21:51

Jeff
Member
Registered: 2012-02-14
Posts: 39

Re: upload a picture for thumbnail

I set it to 777, now it's working.

Offline

#5 2012-03-16 07:35:02

THS
Member
Registered: 2012-02-02
Posts: 313
Website

Re: upload a picture for thumbnail

Ah, I take it you are not running suPHP that would then require a chmod 777.  Glad you got it working.

Offline

#6 2012-03-16 08:03:21

Jeff
Member
Registered: 2012-02-14
Posts: 39

Re: upload a picture for thumbnail

How do I make it chmod 777 everytime it generate the thumb folder?
I gotta change it to 777 for new folder everytime.

Offline

#7 2012-03-16 08:18:56

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: upload a picture for thumbnail

This should not be required. What exactly are you trying to do?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#8 2012-03-16 08:30:58

Jeff
Member
Registered: 2012-02-14
Posts: 39

Re: upload a picture for thumbnail

I want to upload a thumbnail to the folder.
but the new generated folder is set to chmod 644

Offline

#9 2012-03-16 08:37:33

ionut
Moderator
Registered: 2012-03-12
Posts: 32

Re: upload a picture for thumbnail

Jeff wrote:

I want to upload a thumbnail to the folder.
but the new generated folder is set to chmod 644

default permission depends on the default umask. is not something that the script change.

Offline

#10 2012-03-16 08:40:49

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: upload a picture for thumbnail

Are you generating the new folder or is the script generating the new folder. If the script is generating the new folder, then it should be always writable by the user that runs the web servers (or if you run suphp/... then by the account user).


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#11 2012-03-16 08:41:45

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: upload a picture for thumbnail

Hmmm...you want to upload your own thumbs in /media/videos/tmb/xxx/xxx/xxx/?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#12 2012-03-16 09:11:56

Jeff
Member
Registered: 2012-02-14
Posts: 39

Re: upload a picture for thumbnail

Yes, I want to use my own thumb as the movie cover picture.
I think I got it, now I command umask to 000.

Still can't get it work, I have to change chmod for every new created folder.
I umask the 000 folder to 000, the next time I log in, it returns to 022.

Last edited by Jeff (2012-03-17 01:54:50)

Offline

Board footer

Powered by FluxBB