Help with file upload /plesk

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/71317?pagenum=1
04 November 2025, 18:14

Topic


volkerc
Help with file upload /plesk
23 July 2020, 14:19


Hi all,

i hope someone is still out there who can help. I love the Snitz Forum, and i hate changes. I used to upload images through webform with file upload asp, persits.
Now my hosting company decided to switch to plesk and now my file upload no longer works. I'm getting the following error:
Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/forum/file_upload.asp, line 16

800401f3
Stupid hosting company says:
We have investigated the issue with your Plesk hosting account and we have found that your site is trying to use scripting that is not supported in the Plesk hosting platform, as it does not have compatibility with Classic ASP. We advise that you update the code in your site to use ASP.NET, which will work within Plesk.
Now what? What can I do? It was very convenient for me to just upload a file with a few clicks and get a url immediately, now it's just a drag. I want the old Snitz look, and my beloved features? sad

 

Replies ...


Etymon
23 July 2020, 23:11


Hi volkerc!
What my son and I are doing are using Microsoft Azure so we can retain the older Microsoft products. It is a learning curve. I let my son handle it for me.
Carefree
23 July 2020, 23:14


Easiest thing would be to tell the hosts to move you to a non-plesk server. If they won't, change hosts.
Etymon
24 July 2020, 03:38


I second Carefree on that, but you might be able to implement Snitz MVC and leverage it's upload code as a backdoor approach while still using the classic Snitz. I'm not sure what you are using the upload for. I am not a .NET guy, so I may be not referencing the correct approach on this. I would attempt something like that myself though. You might have a database that you'd rather not move.
volkerc
24 July 2020, 06:24


Thanks to ll that replied so far. Gonna respond in one post. Moving to a non plesk server is the problem, I was on one, and they took it upon themselves to move me to plesk. Kept telling me everything will be fine, bla, bla. Of course it's not.

Using the file upload to easily upload images to a folder and instantly get a url shown so a huge time saver. since monday life now has become a drag uploading and posting pics. And I need to do that a lot.
Snity MVC, and all the other things mentioned, I'm no computer wizard, not into programming, I can follow instructions, but might be lost if something goes wrong, which is one reason not having switched from that hosting company yet.

Very upset at this point. Everything was cool, but again other people destroying what was build. sad
volkerc
24 July 2020, 12:19


Maybe take a look at this ...
https://support.plesk.com/hc/en-us/articles/115001637594-How-to-enable-Classic-ASP-support-for-a-domain-in-Plesk-for-Windows-ServerOriginally posted by Etymon
The Microsoft ASP support is checked off but the upload does not work. The upload works with persits. I contacted them and they told me to contact support and change certain things. But their answer is : We have investigated the issue with your Plesk hosting account and we have found that your site is trying to use scripting that is not supported in the Plesk hosting platform, as it does not have compatibility with Classic ASP. We advise that you update the code in your site to use ASP.NET, which will work within Plesk.
Etymon
24 July 2020, 12:29


Maybe take a look at this ...
https://support.plesk.com/hc/en-us/articles/115001637594-How-to-enable-Classic-ASP-support-for-a-domain-in-Plesk-for-Windows-Server
Etymon
24 July 2020, 12:31


I used these search terms (classic asp and plesk upload) on DuckDuckGo, which gave me this link ...
https://duckduckgo.com/?t=ffnt&q=classic+asp+and+plesk+upload&atb=v1-1&ia=web
volkerc
25 July 2020, 05:51


Originally posted by volkerc
Maybe take a look at this ...
https://support.plesk.com/hc/en-us/articles/115001637594-How-to-enable-Classic-ASP-support-for-a-domain-in-Plesk-for-Windows-ServerOriginally posted by Etymon
The Microsoft ASP support is checked off but the upload does not work. The upload works with persits. I contacted them and they told me to contact support and change certain things. But their answer is : We have investigated the issue with your Plesk hosting account and we have found that your site is trying to use scripting that is not supported in the Plesk hosting platform, as it does not have compatibility with Classic ASP. We advise that you update the code in your site to use ASP.NET, which will work within Plesk.

Try this ...
https://talk.plesk.com/threads/installation-of-persits-aspjpeg-and-aspupload.106689/
Originally posted by Etymon

I don't have access to the server, it's shared hosting. The support team was given these instructions and they came back with the above reply. I have now complained in written form that i never gave permission to change this hosting. I doubt that they care. Problem is i'm by no means a programmer, switching to another provider therefore will be lots of more work and stress.
Etymon
25 July 2020, 06:12


Originally posted by volkerc
Maybe take a look at this ...
https://support.plesk.com/hc/en-us/articles/115001637594-How-to-enable-Classic-ASP-support-for-a-domain-in-Plesk-for-Windows-ServerOriginally posted by Etymon
The Microsoft ASP support is checked off but the upload does not work. The upload works with persits. I contacted them and they told me to contact support and change certain things. But their answer is : We have investigated the issue with your Plesk hosting account and we have found that your site is trying to use scripting that is not supported in the Plesk hosting platform, as it does not have compatibility with Classic ASP. We advise that you update the code in your site to use ASP.NET, which will work within Plesk.

Try this ...
https://talk.plesk.com/threads/installation-of-persits-aspjpeg-and-aspupload.106689/
HuwR
26 July 2020, 08:58


Hi volkerc,

does your forum work on the plesk server, or is it just uploads that don't work? If the forum works then it is not an ASP problem (if it was the forum would not work)

what does line 16 of your file_upload.asp look like? my guess is it is trying to use the file scripting object, which is what is probably not supported.
You say "The upload works with persits." if that is the cause it should be simple to change your file_upload.asp to use that rather than the scripting object.
Could you post text copies of your upload.asp file so we can take a look.
volkerc
26 July 2020, 14:56


Hi volkerc,

does your forum work on the plesk server, or is it just uploads that don't work? If the forum works then it is not an ASP problem (if it was the forum would not work)

what does line 16 of your file_upload.asp look like? my guess is it is trying to use the file scripting object, which is what is probably not supported.
You say "The upload works with persits." if that is the cause it should be simple to change your file_upload.asp to use that rather than the scripting object.
Could you post text copies of your upload.asp file so we can take a look. Originally posted by HuwR
Hi Huwr,
the forum works. What doesn't work is the webform upload. I think someone here helped me create this, but I can't find the topic anymore. Line 16 in file.upload.asp says : Set Upload = Server.CreateObject ("Persits.Upload")
Not knowing much about programming, Persits seems to be a software that was common on servers? I didn't get the software, so somehow that must have been supported by the hosting company, but no longer? The whole idea basically was to have images upload through a webform which when uploaded gives me the stored location url instantly. And it worked fine for 8 years,....
HuwR
26 July 2020, 18:04


Ok, then it would appear that persits upload is not installed on your new server or is installed and the permissions on the dll are not correct. Unless you have RDP access to your server there is nothing you can do to fix the proble, only your host can do that.
You could try asking your hosting company if the will install it, I don't know anything about Plesk so no idea if you are able to install it yourself, but I would doubt it.
volkerc
26 July 2020, 21:04


Ok, then it would appear that persits upload is not installed on your new server or is installed and the permissions on the dll are not correct. Unless you have RDP access to your server there is nothing you can do to fix the proble, only your host can do that.
You could try asking your hosting company if the will install it, I don't know anything about Plesk so no idea if you are able to install it yourself, but I would doubt it.
Originally posted by HuwR
I guess they are giving me the finger. It was elevated all the way to those techs that handle the server permissions. They say it's content, not their problem. Some reps can't believe the response. They know they took a feature away, so it's not content.
HuwR
27 July 2020, 17:54


It absolutely is not content it is a server side system dll, how the f**k is that content.
volkerc
27 July 2020, 18:10


It absolutely is not content it is a server side system dll, how the f**k is that content.Originally posted by HuwR
Another written response from today. : Thanks for following up. Our older Windows hosting plans were discontinued, and we are transitioning all of our customers to our Plesk based hosting. We did notify all our affected customers and I can confirm that we sent notifications to you regarding this.
As our old hosting service has been discontinued, we are not able reverse this or transition you back to an older hosting plan.
I do apologize if you've had any trouble with your site after the migration. You would need to take action to update any portions of your site that is using older code that may not be compatible with newer versions. This is not something our Support teams would be able to assist with.
^G
volkerc
27 July 2020, 20:55


And another one: I do apologize, but Persits ASPupload is not available on our Plesk hosting. Please be advised that Persits is a third party ASP module.
You would need to update the scripting of your site to use an upload function that doesn't use Persits. I do apologize for any inconvenience this might cause.
HuwR
28 July 2020, 07:45


You could try the original upload mod that used the file scripting object instead of persits upload, but no guarantee that this would work either.
link to upload using scripting object
https://snitzbitz.com/mods/details.asp?Version=All&mid=67
volkerc
28 July 2020, 10:44


You could try the original upload mod that used the file scripting object instead of persits upload, but no guarantee that this would work either.
link to upload using scripting object
https://snitzbitz.com/mods/details.asp?Version=All&mid=67
Originally posted by HuwR
thanks,
i think this allows every member to upload an image? what i ahd before, was just simply for me url i knew, to upload like a few images and when uploaded get a url shown. this sounds different,...?
HuwR
28 July 2020, 17:28


It would be simple to only allow say an admin to upload, but really you just need to replace the actual upload code that uses persits, I would need to see your upload file in order to show you what to change.
volkerc
28 July 2020, 18:40


Hi Huwr,
i think this is what you would like to see,...?
'on error resume next



Server.ScriptTimeOut=10000

if request.querystring("upload") = 1 then

Set Upload = Server.CreateObject("Persits.Upload")
Upload.OverwriteFiles = False


'

savelocation = "/forum/volkerc/"
Upload.Save

' Loop through the uploaded files
thefirst = 1
For Each File in Upload.Files

File.SaveAsVirtual savelocation & File.FileName



if thefirst = 1 then
response.write "<B>DONE!</B><BR><BR>"
end if
response.write "File " & thefirst & ": <a href=""" & savelocation & File.Filename & """ target=""_blank"">" & savelocation & File.Filename & "</a><BR><BR>"
thefirst = thefirst + 1

Next


End If



%>
<table><tr>

<td align=center>


<BR><BR>


<form method="post" action="file_upload.asp?upload=1" ENCTYPE="multipart/form-data">

<b>Choose File(s):</b><BR><BR>
1: <input type="file" name="FILE1" size=65><BR><BR>
2: <input type="file" name="FILE2" size=65><BR><BR>
3: <input type="file" name="FILE3" size=65><BR><BR>
4: <input type="file" name="FILE4" size=65><BR><BR>
5: <input type="file" name="FILE5" size=65><BR><BR>
6: <input type="file" name="FILE6" size=65><BR><BR>
7: <input type="file" name="FILE7" size=65><BR><BR>
8: <input type="file" name="FILE8" size=65><BR><BR>
9: <input type="file" name="FILE9" size=65><BR><BR>
<input type="submit" class="submit" value="Upload Files">

</form>

</td></tr></table>


</body></div>
</html>
<div align="center"><footer><h1><font color="#c0c0c0"><br />
</font></h1>
<div style="text-align: center;"><font color="#c0c0c0">
</font></div>
<div style="text-align: center;"><font color="#c0c0c0"><font style="font-size: 8px;"><font style="font-size:9px;"><font style="font-size: 10px;"><br />
</font></font></font><font style="font-size: 8px;"><font style="font-size: 10px;">
</font></font></font></div>
<font style="font-size: 8px;"><font style="font-size: 10px;">
</font></font>
HuwR
29 July 2020, 06:34


could you upload a copy of the file (change the .asp extension to .txt before uploading) and I will change it to use the file scripting object
volkerc
29 July 2020, 10:11


it won't let me upload .txt
HuwR
29 July 2020, 16:44


oops, my bad, there was an error in the list of allowed file types, it should allow you now smile
volkerc
29 July 2020, 16:50


worked now ;)

upload.txt 1 KB
HuwR
30 July 2020, 08:27


thanks, I will take a look at the weekend as a bit swamped at work this week.
volkerc
30 July 2020, 10:31


Thank you!
HuwR
01 August 2020, 06:32


here ya go, i tested it locally and it all worked ok, but obviously no guarantees it will work for you.
ASPUpload.zip 6 KB
extract both files to the folder where you currently have your upload.asp file (it will overwrite yours and add an extra file).
let me know how you get on.
volkerc
01 August 2020, 20:30


i uploaded both files, overwritten the old one, added the extra, not working. must be doing something wrong. getting a white screen with this message: forum\volkerc does not have write permissions. The value of your uploadsDirVar is incorrect. Open uploadTester.asp in an editor and change the value of uploadsDirVar to the pathname of a directory with write permissions. After you correct this problem, reload the page. this stupid plesk shows write permission....?
HuwR
01 August 2020, 22:08


you should be able to set the folder permissions in plesk for that folder.
https://support.plesk.com/hc/en-us/articles/213407189-How-to-manage-file-directory-permissions-via-Plesk-File-Manager#:~:text=In%20Plesk%2C%20go%20to%20Domains%20%3E%20example.com%20%3E,file%2Fdirectory%3A%20the%20Change%20Permissions%20button%20will%20be%20unavailable.
volkerc
02 August 2020, 07:52


I know where to change them, but it's different for me than all links i found, i can change permission for
Administrators
Plesk FTP subaccount
Application pool group (IWPG
Plesk Domain User
Plesk FTP subaccount (sup

It was all so easy with the old hosting :/
HuwR
02 August 2020, 08:43


You probably want to set it for the Application Pool
volkerc
02 August 2020, 10:10


well, good news, the webform comes up, i can select an image to upload, hit upload, the screen turns white does not come back on to show me the saved url. checked the folder, image not uploaded.
volkerc
02 August 2020, 10:34


Bingo, my bad. I had renamed your file cause i found another file with identical name, didn't want that deleted. So i placed your 2 files in a different folder and it works.!!!!!!! Man, you really saved me. thumbsUp Can I buy you a beer?
HuwR
02 August 2020, 18:56


Excellent, glad it is working for you smile
Etymon
07 August 2020, 22:36


Here you go, volkerc ... http://snitzbitz.com/mods/details.asp?Version=All&mid=266 bigsmile
Etymon
07 August 2020, 22:42


Thanks for helping out, Huwr! I ran into the same problem with another host. I went to Azure because my son being techy wanted to try it out.
© 2000-2021 Snitz™ Communications