Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - File upload not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

File upload not working

 Post Reply Post Reply Page  <123>
Author
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2003 at 7:16am
Back to Top
traderX View Drop Down
Newbie
Newbie


Joined: 10 February 2003
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote traderX Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2003 at 7:47am

My hosting company have informed that the SA upgrade to version 4 is £300 + VAT. They want me to pay the fee.... which obviously I refused to do.

I've requested that they look at installing one of the free components...any other ideas?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2003 at 8:09am

I'm looking at changing the code to make it compatible with version 3.x. Only problem is that I don't have version 3.x to test it with, also if anyone knows any references to the properties of version 3.x then please let me know.

Also is it just the shortfilename property that isn't supported in version 3.x

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2003 at 8:12am

Looking at another post on this could you change line 208 of the file functions_upload.asp to the following:-

strNewFileName = Mid(.UserFilename, InstrRev(.UserFilename, "\") + 1)

And let me know if that then allows version 3 of SAfileUP to work?

Back to Top
traderX View Drop Down
Newbie
Newbie


Joined: 10 February 2003
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote traderX Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2003 at 11:00am

Tried the code change Borg....I'm afraid it didn't work. Would appreciate if you would look at tweaking the code to run with SA V3.x as it seems the only way I will be able to use the forum...

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2003 at 11:04am
Without having access to version 3 I don't know if I can.
Back to Top
steve View Drop Down
Groupie
Groupie


Joined: 26 June 2002
Location: United States
Status: Offline
Points: 126
Post Options Post Options   Thanks (0) Thanks(0)   Quote steve Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2003 at 11:59am

Until the issue is fixed, you guys can do use this to create an older version compatable upload form.  It's just a basic uploader, so any files can be uploaded. I'll leave it up to you guys to add the file permission code in.

Here we go...

'First File called uploader.asp

<html>  
<head>
<title>UPLOADER</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#386CA5">
   <form enctype=multipart/form-data method=post action=multipartformrespond.asp>
  <table width="100%" border="0" align="center">
    <tr>
      <td bgcolor="#E4EAF2"><img src= "yourheader.gif">    </tr>
  </table>
  <table width="300" border="0" align="center" bordercolor="#000000">
    <tr>
      <td height="166" bgcolor="#386CA5"><table width="303" border="1" align="center" bordercolor="#000000">
          <tr>
            <td height="149" bgcolor="#E4EAF2"><table>
                <tr>
                  <td height="24">Enter file description:</td>
                  <td><input type=text name=descrip></td>
                </tr>
                <tr>
                  <td>Select file:</td>
                  <td><input type=file name=f1></td>
                </tr>
                <tr>
                  <td><input name="submit" type=submit value="Submit"></td>
                  <td></td>
                </tr>
                <tr>
                  <td colspan="2"><div align="center">
                      <p><font size="2"><br>
    </font></p>
                      </div></td>
                </tr>
              </table> </td>
          </tr>
        </table></td>
    </tr>
  </table>
  </form>
</body>
</html>

-------------------------------

'Second File called multipartformrespond.asp

<HTML><HEAD>
<TITLE>Multi Part Forum Respond</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD><BODY bgcolor="#386CA5">
<table width="100%" border="0" align="center">
  <tr>
    <td bgcolor="#E4EAF2"></td>
  </tr>
</table>
<table width="382" border="0" align="center" bordercolor="#000000">
  <tr>
    <td width="376" height="176" bgcolor="#386CA5"><table width="100%" border="1" align="center" bordercolor="#000000">
        <tr>
          <td height="69" bgcolor="#E4EAF2">Thank you for uploading your file.<br>
            <br>
            <font size="2">
            <%
Set upl = Server.CreateObject("SoftArtisans.FileUp")
'what you are doing here is defining the path to where the uploaded file will be saved.  You can change this to where you want them to go.
upl.Path = Server.Mappath ("/upload") & "/" & "files"
upl.Save
strFilename = Mid(upl.UserFilename, InstrRev(upl.UserFilename, "\") + 1)%>
            File name:<br>
            Insert the path to your upload folder here/<%=strFilename%><br>
            <br>
            File description: <%=upl.form("descrip")%> </font></td>
        </tr>
      </table>
      <br>
      <font color="#FFFFFF" size="2"><strong>Cut &amp; Paste the filename into the &quot;Insert
      Image&quot; field in your post.</strong></font></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</BODY></HTML>

 

Remember this will only work if our host is using SA Fileup as it's upload component. Good Luck!



Edited by steve
Back to Top
traderX View Drop Down
Newbie
Newbie


Joined: 10 February 2003
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote traderX Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2003 at 4:14am

Hi Borg,

The hosting provider has upgraded to SA 3.4.7 but I am still getting the same problem: after selecting the file and pressing upload the file path goes blank and nothing happens. I've uploaded the complete forum again but to no avail. Check it out:

http://odette.xhostcustomers.co.uk/forum

Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.