Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 upload and renaming pics
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 28 February 2006 :  04:30:03  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
Nope, wont' run =(
I _think_ I have persits upload component, but ain't sure..
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 08 March 2006 :  04:13:42  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 08 March 2006 :  06:20:54  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 08 March 2006 :  09:22:07  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

Bassman
Junior Member

Netherlands
256 Posts

Posted - 08 March 2006 :  10:18:18  Show Profile  Visit Bassman's Homepage  Reply with Quote
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.<
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 08 March 2006 :  10:39:16  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 08 March 2006 :  10:46:34  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
I found this info regarding my error but couldn't make it work anyways:
http://forums.brinkster.com/forummessage.asp?id=107372&Forum=22
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 08 March 2006 :  11:22:10  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 08 March 2006 :  11:43:17  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 08 March 2006 :  12:23:20  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 08 March 2006 :  14:32:14  Show Profile  Visit AnonJr's Homepage  Reply with Quote
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.<
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 09 March 2006 :  03:15:52  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
But I can have config.asp included without problems, it's just the inc_header.asp that screw things up..
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 09 March 2006 :  05:28:52  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 09 March 2006 :  08:27:43  Show Profile  Visit AnonJr's Homepage  Reply with Quote
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.<
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 09 March 2006 :  08:29:27  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07