Pure ASP Upload 3 Support Product Page

This topic was archived

PAU3: Browse for Upload Folder Problem

Reported 21 Aug 2007 18:04:22
1
has this problem
21 Aug 2007 18:04:22 Jon Jaques posted:
Hello,

I'm running PAU 3.09 on DW8.02, on WinXP (AMD Athlon, 1 Gb ram).

After applying PAU to a page, I browse to my upload folder, but PAU has it's own idea about where the site root is.

The correct path should be:
../../../images/auto/auctions

But PAU gives me this:
"../../../../../../Inetpub/wwwroot/MaierAuctions/images/auto/auctions"

And what's up with the quotes? I checked the code, and it does double them up, so that they are properly escaped, but do they belong there or not? I'm having a lot of problems getting this to work, and I can't tell if it's because of spurious bugs like this one, or if it is something that I am doing wrong.

My first thought was that there was a problem with my DW profile, but I checked it, and the site root is properly set at

C:\InetPub\wwwroot\MaierAuctions
As you can see by the bad PAU link above, it is going below the site root (below the server root!) to make the relative link.

Any ideas as to what could be causing this?

--J

Replies

Replied 22 Aug 2007 12:53:15
22 Aug 2007 12:53:15 Georgi Kralev replied:
Hi Jon,

It looks like there is some problem with the way you have defined your site.

Could you provide all the settings for your site, your site structure and where is situated your file with Pure Asp Upload 3.

For more information about defining sites in Dreamweaver you could also read the following article:
kb.adobe.com/selfservice/viewContent.do?externalId=tn_14028&sliceId=1

Regards

Georgi Kralev

----------------------------------
Support - www.DMXzone.com
Replied 22 Aug 2007 17:59:52
22 Aug 2007 17:59:52 Jon Jaques replied:
Well that was the first thing I thought of, too, because I've been using DW for years, but I don't see any problems with my site definition at all; It might be easier to look at screen shots, but here is my site definition, with credentials removed:

<?xml version="1.0" encoding="utf-8" ?>
<site>
<localinfo sitename="MaierAuctions" ftporrdsserver="FALSE" localroot="C:\InetPub\wwwroot\MaierAuctions\" imagefolder="C:\InetPub\wwwroot\MaierAuctions\Images\" spacerfilepath="" refreshlocal="TRUE" autouploadfiles="TRUE" maintainsyncinfo="TRUE" rewritedocrellinks="FALSE" cache="TRUE" httpaddress="www.maierauctions.com/" relativeTo="DOCUMENT" caseSensitiveLinks="FALSE" curserver="webserver"/>
<remoteinfo accesstype="ftp" host="ftp.maierauctions.com" remoteroot="" user="xxxxxxxxxx" pw="xxxxxxxxxx" checkoutname="jonj" emailaddress=" " enablecheckin="FALSE" checkoutwhenopen="TRUE" usefirewall="FALSE" usepasv="FALSE" useSFTP="FALSE" useftpoptimization="TRUE" usealternaterename="FALSE" pathNameCharacterSet="Windows-1252"/>
<designnotes usedesignnotes="TRUE" sharedesignnotes="TRUE"/>
<sitemap homepage="" pagesperrow="200" columnwidth="125" showdependentfiles="FALSE" showpagetitles="FALSE" showhiddenfiles="FALSE"/>
<fileviewcolumns sharecolumns="TRUE">
<column name="Local Files" align="left" show="TRUE" share="FALSE" builtin="TRUE" localwidth="132" remotewidth="180" />
<column name="Notes" align="center" show="FALSE" share="FALSE" builtin="TRUE" localwidth="36" remotewidth="36" />
<column name="Size" align="right" show="TRUE" share="FALSE" builtin="TRUE" localwidth="40" remotewidth="-2" />
<column name="Type" align="left" show="TRUE" share="FALSE" builtin="TRUE" localwidth="60" remotewidth="60" />
<column name="Modified" align="left" show="TRUE" share="FALSE" builtin="TRUE" localwidth="-1" remotewidth="102" />
<column name="Checked Out By" align="left" show="FALSE" share="FALSE" builtin="TRUE" localwidth="-1" remotewidth="-1" />
</fileviewcolumns>
<appserverinfo servermodel="ASP VBScript" urlprefix="localhost/maierauctions/" connectionsmigrated="TRUE" serverobjectsversion="1" defaultdoctype="HTML" accesstype="lan" remoteroot="C:/InetPub/wwwroot/MaierAuctions/" refreshremote="TRUE" testsvrbinaccesstype="none"/>
<cloaking enabled="TRUE" patterns="FALSE">
<cloakedpattern pattern=".png"/>
<cloakedpattern pattern=".fla"/>
</cloaking>
<contributorintegration enabled="FALSE"/>
</site>

All of my paths are consistent, and the path is well used (there's probably a hundred sites under my wwwroot, but only 20 or 30 are configured in DW at this moment in time).

--J

Replied 23 Aug 2007 17:58:05
23 Aug 2007 17:58:05 Georgi Kralev replied:
Hi Jon,

Your site definition looks good.

This problem could appear if the page with Pure ASP Upload is situated outside your site.
Also, this could happen if it is selected other site.

If this is not the case everything should work fine.

Regards,

Georgi Kralev

----------------------------------
Support - www.DMXzone.com
Replied 24 Aug 2007 00:31:26
24 Aug 2007 00:31:26 Jon Jaques replied:
Nope, everything is within this site; relative linking below the root of the site would not work, no matter how you look at it, so I can say that I definitely did not do that.

And PAU would have no knowledge of applications defined in the server itself, so that's likely not the cause, either.

The files are either within the site root, or they are not, and in this case they are all under the site root, as they should be.
Replied 21 Mar 2008 23:08:11
21 Mar 2008 23:08:11 student 101 replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Nope, everything is within this site; relative linking below the root of the site would not work, no matter how you look at it, so I can say that I definitely did not do that.
And PAU would have no knowledge of applications defined in the server itself, so that's likely not the cause, either.
The files are either within the site root, or they are not, and in this case they are all under the site root, as they should be.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Was this ever fixed for you?
I have the same issue, running PAU3 on 2, actually 3 PC's and they all give me this: (when using PAU2 or PAU3)
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>"../../sites/webimages/images"<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Instead of this:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>"../images"<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
If it's my site setup then all 17 of them are setup incorrectly?

Cheers


[DWMX 2004]|[DWMX 8]|[DW CS3]|[MySQL]|[SQL]|[Access ]|[ASP/VBScript]|[PHP]|[XP-Pro]
Replied 21 Mar 2008 23:56:46
21 Mar 2008 23:56:46 Jon Jaques replied:
Hey Jayson,

No, I never fixed it for myself, but I do think I know what the source of the problem is... When I develop my sites locally, I'm calling them like localhost/mysite, but when the site goes live the proper path/url is www.mysite.com.

The relative structure of the site must be equally setup in all of the local, remote, and dev sections of site setup. DreamWeaver can handle the differences in these settings, but DMX can not.

--J
Replied 22 Mar 2008 00:06:38
22 Mar 2008 00:06:38 student 101 replied:
True, it seems PAU2 or PAU3 doesn't know the difference between "relative" or "absolute" paths.

Been playing around in DW CS3, found that if you change the "Links relative to:" (you have two options here) "Document" or "Site Root"

Change it to "Document" open your page, create a new link it creates it as a relative link.
Change it to "Site Root" open your page, create a new link it creates it as an Absolute link.
Not really sure, think it's just PAU2 or 3 that's not finding something, wish I knew what it was or how to fix it.

Cheers




[DWMX 2004]|[DWMX 8]|[DW CS3]|[MySQL]|[SQL]|[Access ]|[ASP/VBScript]|[PHP]|[XP-Pro]
Replied 22 Mar 2008 21:39:56
22 Mar 2008 21:39:56 Jon Jaques replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Been playing around in DW CS3, found that if you change the "Links relative to:" (you have two options here) "Document" or "Site Root"

Change it to "Document" open your page, create a new link it creates it as a relative link.
Change it to "Site Root" open your page, create a new link it creates it as an Absolute link.
Not really sure, think it's just PAU2 or 3 that's not finding something, wish I knew what it was or how to fix it.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Well yes, I think that's the root of the problem that I run into, in that I cannot use "relative to site root" on my dev server, here at home, or else all of my links would start with /mysite/ and those links would only work locally, and not when live on the internet. I do that because I am slightly lazy, and can use just one site root to serve up any of dozens of development sites that I work on, and it would be a significant overhead to try and host each site in its own root, either by using distinct ports, or by host headers, or whatever.

But to make this work, I should think that it is neccessary to do just that, so that you *can* use "site root" and have links that worth both locally and remotely.

At least, that is my theory.
Replied 27 Mar 2008 20:29:33
27 Mar 2008 20:29:33 student 101 replied:
It seems that DMXzone is not interested in helping us here.

If it's to do with the <b>site being defined properly</b> then <b>how to know if it is?</b> (even after following and doing these steps:adobe's method)
It still does not work like it supposed to!

I found a site (lost the damn link) that explains how to setup Dreamweaver to only use absolute paths, not relative.
I do know that only ASP can be setup for relative paths if you use IIS on windows (I don't know what to do in Apache or others)

Cheers




[DWMX 2004]|[DWMX 8]|[DW CS3]|[MySQL]|[SQL]|[Access ]|[ASP/VBScript]|[PHP]|[XP-Pro]
Replied 27 Mar 2008 21:16:29
27 Mar 2008 21:16:29 Jon Jaques replied:
Well, yes, I see that on WinXP, my problem with IIS is that it cannot have multiple site roots, and so that is why each site on my machine is a sub-folder underneath the one allowed root, and this is the cause of the relative path problem with this component...

Therefore, one answer would be setting up an alternative server which can host multiple site roots; according this blog post, you can make Apache run ASP pages with a free developers copy of ChiliSoft, but I'm not sure if there may be platform differences that would cause the app to not function properly once published to the production servers. Nonetheless, here's what they say:

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>- APACHE with Sun ONE Active Server Pages
- Download the Apache Web Server from www.apache.org
- To get it to run ASP pages, you will need the Sun ONE Active
Server Pages product from wwws.sun.com/software/chilisoft/.
You can get a free developers download which allows you to
develop, test, and debug ASP pages.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

I would NOT recommend changing the site root each time you worked on another site with IIS, as I'm pretty certain this would cause registry errors, not to mention permission nightmares.

If you were developed off of Server 2003, though, you would have no problem creating multiple site roots, identified either by unique port numbers, or via host header names, and then this should work... But the easier solution for XP, is to find an alternative web server, seeing as how MX does not seem interested in compensating for this problem in their product.


Edited by - wayvirgo on 27 Mar 2008 21:20:27
Replied 27 Mar 2008 21:23:06
27 Mar 2008 21:23:06 student 101 replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>If you were developed off of Server 2003, though, you would have no problem creating multiple site roots, identified either by unique port numbers, or via host header names, and then this should work... But the easier solution for XP, is to find an alternative web server, seeing as how MX does not seem interested in compensating for this problem in their product.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Good point, but it's always about money <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
I can't afford any more computers, let alone Microsoft (<font size=1>ridiculously priced</font id=size1> software.
We would have to just deal with it.

Cheers


[DWMX 2004]|[DWMX 8]|[DW CS3]|[MySQL]|[SQL]|[Access ]|[ASP/VBScript]|[PHP]|[XP-Pro]
Replied 28 Mar 2008 00:23:33
28 Mar 2008 00:23:33 Jon Jaques replied:
Hmmm, do you have the Microsoft Action Pack available in SA? I'm not sure what your expertise level is, but it's pretty easy to get a MS partner membership, and then with minimal requirements, you can get the Action Pack, which comes LOADED with software for you to use, as a developer, for $399 per year -- I'd spend much more than that per year were it not for this program... not sure if it's available there, but if it is, you should seriously consider it!!!

www.microsoft.com/partners is the US url, but it may automatically redirect you. Basic level of membership is free, though, and should enable the Action Pack.

$0.02.

--J
Replied 28 Mar 2008 08:13:59
28 Mar 2008 08:13:59 student 101 replied:
thanks, will check it out

[DWMX 2004]|[DWMX 8]|[DW CS3]|[MySQL]|[SQL]|[Access ]|[ASP/VBScript]|[PHP]|[XP-Pro]

Reply to this topic