Folder Properties Upload and Run Scripts (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


bobt -> Folder Properties Upload and Run Scripts (9/17/2005 11:52:53)

Hi,
There is a place on my website that allows members to upload their company Logo.

The logos is then called by a script and posted against their profile if a visitor or fellow member views the profile.

The issue that I have is that for the folder where the images are uploaded to I can not set both "Allow anonymous upload" and "Allow scripts to be run" on the same folder (probably for a good reason).

If I check "Allow Upload" then Allow Scripts" is greyed out and if I check "Allow Scripts" then the "Allow Uploads" is greyed out.

I can have one or the other property set on the folder not both.

The bit of code that calls the images is
<img src="images/memlogos/<%=FP_FieldHTML(fp_rs,"ID")%>.gif">
and this is on the membeship view page.

So basically what I have is:
1. A folder that I can upload images to but display; or
2. A folder that I can display imgaes from but not upload to.

Anyone have an ideas how to over come the problem or any work around.

Regards,
Bob




Spooky -> RE: Folder Properties Upload and Run Scripts (9/17/2005 17:00:35)

Have you checked "Allow files to be browsed" ?




bobt -> RE: Folder Properties Upload and Run Scripts (9/17/2005 17:45:55)

I am pretty sure that I have tried that option.
From memory with that option you can set the Upload also but I don't think it showed the images.

I will give it a go and let you know.

Bob




bobt -> RE: Folder Properties Upload and Run Scripts (9/17/2005 18:25:43)

Hi Spooky,
I was able to set both properties "Allow files to be browsed" and "Allow anon upload" together.

That lets me upload but it won't show the images.

It appears that unless I set "Allow scripts to be run" it won't show the images.

Bob




Spooky -> RE: Folder Properties Upload and Run Scripts (9/17/2005 18:40:45)

Do you have an example page?




bobt -> RE: Folder Properties Upload and Run Scripts (9/17/2005 21:49:37)

If you go to this page you can select a member to view:
http://www.wlnetwork.com/membershipviewcomp.asp

There are a couple of member that do not have their logos posted yet but if you pick 53, 50 and 2 you see different logos for the different companies.

Bob




Spooky -> RE: Folder Properties Upload and Run Scripts (9/17/2005 22:05:47)

You are modifying the properties for "images/memlogos/" ?




bobt -> RE: Folder Properties Upload and Run Scripts (9/17/2005 22:21:45)

If you go to this page then you can select a member to see it in action:
http://www.wlnetwork.com/membershipviewcomp.asp

There are a couple of members that don't have logos posted yet but if you select 53,50 and 2 the you will see company logos and understand what I am doing.

Of course the upload is not working at the moment unless you use the admin login when it requests it and the members aren't getting that so therein lies my issue.

Bob




Spooky -> RE: Folder Properties Upload and Run Scripts (9/17/2005 22:41:42)

I would perhaps try recreating the folder again - those are the only 2 check boxes required.
You cant upload files at this time?




bobt -> RE: Folder Properties Upload and Run Scripts (9/17/2005 23:23:29)

Spooky,
I have made a quick page with some screen shots of the property dialogue box:

http://www.wlnetwork.com/spookyscreenshots.htm

All the folders behave the same on my website check one the other greys (as I have explained).

Do you know if this is normal?

Bob




Spooky -> RE: Folder Properties Upload and Run Scripts (9/17/2005 23:30:59)

You should have the bottom one with allow files to be browsed checked as well.




bobt -> RE: Folder Properties Upload and Run Scripts (9/17/2005 23:51:10)

You mean like that. (Added another shot)

It does not work I need scripts for some reason.

Bob




Spooky -> RE: Folder Properties Upload and Run Scripts (9/18/2005 0:34:48)

Yes, the last one works fine for me




bobt -> RE: Folder Properties Upload and Run Scripts (9/18/2005 11:35:20)

Hi Spooky,
I wished that it would work for me but for some reason it doesn't and I don't have enough hair to pull anymore out.

I will try some more experiments and see what I can come up with.

Bob




bobt -> RE: Folder Properties Upload and Run Scripts (9/18/2005 11:56:22)

Spooky when you say it worked for you did you refresh your browser to ensure that the image was not being pulled from the cache.

I got fooled by that early on and I thought that I had solved the problem but I did a refresh and the image was not there.

I imagine though that only catches out newbies like me, it did make me feel good when I thought that the issues was resolved.

Bob




Spooky -> RE: Folder Properties Upload and Run Scripts (9/18/2005 16:41:41)

Can you perhaps create a new folder - set those 2 check boxes and then try making a default file upload page - just to check that the basics work?

After uploading to the folder, you can browse to the folder root to see the listed files.

If I try that with your current folder, I get :

HTTP Error 403.2 - Forbidden: Read access is denied.
Internet Information Services (IIS)


This means the folder cant be read (as that box isnt checked)




bobt -> RE: Folder Properties Upload and Run Scripts (9/19/2005 1:01:44)

I have created a new folder.
Set boxes "Allow browse" and "Allow Anon upload"
Have uploaded 6.gif, 7.gif and 8.gif OK to folder.

Can not browse them get error
HTTP Error 403.1 - Forbidden: Execute access is denied

Set the folder to "Allow scripts and then can browse"

Folder is at http://www.wlnetwork.com/memlogos/

Folder has been reset to your properties (No scripts).
Bob




Spooky -> RE: Folder Properties Upload and Run Scripts (9/19/2005 1:59:01)

When do you get that error?

" Can not browse them get error
HTTP Error 403.1 - Forbidden: Execute access is denied "

You say the files get uploaded ok? that part works fine?




bobt -> RE: Folder Properties Upload and Run Scripts (9/19/2005 2:30:56)

The upload works fine.
Get the error on browse.




Spooky -> RE: Folder Properties Upload and Run Scripts (9/19/2005 2:35:13)

The only thing I can go back to - is talk to the host and see if they can change permissions from their end.
Something is obviously not right there using the default FP extensions. I can test it without fault on our server [&o]




bobt -> RE: Folder Properties Upload and Run Scripts (9/19/2005 3:36:57)

Spooky not a problem thanks for all the help I will get it working one way or another.

One last question should the statement:
<img src="images/memlogos/<%=FP_FieldHTML(fp_rs,"ID")%>.gif">

be able to work with the properties set as you suggested "Allow files to be browsed"?




Spooky -> RE: Folder Properties Upload and Run Scripts (9/19/2005 4:15:46)

It should do - its only trying to show an image. If they can be browsed, then they can be displayed.
Good luck with the host [&o]




bobt -> RE: Folder Properties Upload and Run Scripts (9/19/2005 6:04:30)

I will stir them up tomorrow.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.09375