Author |
Topic |
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 28 February 2006 : 04:30:03
|
Nope, wont' run =( I _think_ I have persits upload component, but ain't sure.. < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 08 March 2006 : 04:13:42
|
No luck on this yet.. I'm starting to think I have to use a php-script.. Should be possible to export variables for username and so on to a pop-up, or am I wrong? =) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 08 March 2006 : 06:20:54
|
I've just installed the "abcupload component" so I know that one is available =) I found a few asp upload scripts but none let me rename the files "on-the-fly", I might abandon that idea and just let the users name the files themselves... Though I can guarantee that some of them will forget to do that and everything will be messed up =) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 08 March 2006 : 09:22:07
|
Now I've tried the "EZUpload" script, I can upload stuff with no problem. But when I tried to add the " & MemberID & " to the path it went berzerk. It can LIST the files, but when I try to upload files I get this: Persits.Upload.1 error '800a0001' unspecified error ezupload2.asp, line 16
This is the code: http://www.gotlandrace.se/tabort/ezupload2.txt and this is the configfile http://www.gotlandrace.se/tabort/config.txt I've done a response.write on the paths as you can see and these is the results: SKF_strDir = '/ezupload/20/' SKF_strFolder = 'ezupload\20\' and HTTP_HOST = 'grv2.gotlandrace.se' where "20" is my memberid. The folder ezupload/20/images/ exist with read/write permissions for IUSR-user.
I think that's all info.. =)
< |
/Tribaliztic - www.gotlandrace.se -
|
|
|
Bassman
Junior Member
Netherlands
256 Posts |
Posted - 08 March 2006 : 10:18:18
|
http://www.aspphotoresizer.com/
Can't you use this script...with a bit of a tweak. It runs super fast from 3 mb pics down to several kb's.< |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 08 March 2006 : 10:39:16
|
Yeah that would work with some tweaking, but for $75 I could get another script that does what I want without tweaks. I'm trying to fix this with a free script. Thanks anyway! < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 08 March 2006 : 11:22:10
|
Ok, I excluded inc_header.asp and inc_footer.asp and the upload works. Now I just have to figure out how to make a popup window of this =) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 08 March 2006 : 11:43:17
|
Yes, with a little copy&paste I managed to get a popup window with working upload.
Can anyone explain why it won't work when I have the inc_header.asp or inc_header_short.asp included? It don't really look like the rest of the page the way it is now =( < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 08 March 2006 : 12:23:20
|
I need help, again =) (if anyone even read my monologue hehe..)
How can I make the paths use the MemberID-variable? I want it to be ezupload/20/ for me that have MemberID 20.
This is the code: http://www.gotlandrace.se/tabort/ezupload.txt
It's not coded like snitz so I'm lost =)
I suppose these are the lines i need to change ("images" may be replaced with the MemberID):
SKF_strSaveFile = Request.ServerVariables("APPL_PHYSICAL_PATH")&SKF_strFolder&"images"
Upload.SaveVirtual SKF_strDir&"images"
File.SaveAsVirtual SKF_strDir&"images"&"/"&FName
<a target=""_blank"" href=""http://"&Request.ServerVariables("HTTP_HOST")&SKF_strDir&"images/"&objFileItem.Name & """>
<td width=""45%"" align=""center""><span style=""font-size:12px"">http://"&Replace(Request.ServerVariables("HTTP_HOST")&SKF_strDir&"images/"&objFileItem.Name," ","%20")&"</span></td>"
< |
/Tribaliztic - www.gotlandrace.se -
|
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 08 March 2006 : 14:32:14
|
Don't know about the rest, but as for this:quote: Can anyone explain why it won't work when I have the inc_header.asp or inc_header_short.asp included? It don't really look like the rest of the page the way it is now =(
It has to do with the fact that you can't do a BinaryRead if you've already read from the server variables. Since (as far as I know) all upload components do a Request.BinaryRead it fails from the requests done in config.asp ... which is in all Snitz files.< |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 09 March 2006 : 03:15:52
|
But I can have config.asp included without problems, it's just the inc_header.asp that screw things up.. < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 09 March 2006 : 05:28:52
|
Alittle further.. Just one little thingy left.. On line 29 in this file: http://www.gotlandrace.se/tabort/ezuploadorig2.txt I get this error: ' ''/ezupload2/' Persits.Upload.1 fel '800a0005'
Det går inte att hitta sökvägen.
/ezuploadorig.asp, line 29
(Det går inte att hitta sökvägen = cannot find path) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 09 March 2006 : 08:27:43
|
quote: Originally posted by tribaliztic
But I can have config.asp included without problems, it's just the inc_header.asp that screw things up..
Hmmm. Maybe it was inc_header.asp that did the read on the server variables... in particular it was the Request object that can't be called prior to a BinaryRead.
I'll have to look into it again and double-check myself ... it could have just been an issue with the pure scripting upload I was working with.< |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 09 March 2006 : 08:29:27
|
There _is_ an issue with the request object being called before the binary read and I suppose I can't get around it, hence my latest post regarding retrieving MemberID. I hope that will solve my problems. < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
Topic |
|