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 outcome
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Morten
Junior Member

Denmark
251 Posts

Posted - 14 June 2001 :  11:54:21  Show Profile
I would like to know if anybody could help me with this:

1. After uploading a file some text is transferred into the document.
Is it possible to let this happening in the background so the user donīt se
the code that is pasted into the document.

2. If this is possible how would I have to write the code into the UploadEngine.asp
I have already put an gif into the output, so that the word "download" is not
displayed. But I would also like to have the filename displayed under the gif
(like on the Delphi forums) - and mayby even the filesize if possible.

Have anybody worked with those things ?
----its simplt to much for my brain!-----

Morten
Junior Member

Denmark
251 Posts

Posted - 15 June 2001 :  20:33:03  Show Profile
hm...I donīt hope to bother anybody with this - but
now I have come so far that I can make the uploaded picture display
the delphi-style with filename:


Now I only got two problems left:
1. how to display the size of the file
2. how to hide the code from the message (so that the users donīt fouls around with the code before they post their message.

Would be REALLY happy if anybody could help me with this.

Here I would have showed my; function addfile() in the lines 184-191 in UploadEngine.asp - but the prewiev donīt look so good when I do - is there a way to post textformat strictly ?

best from Morten

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 15 June 2001 :  20:43:29  Show Profile
use the [code] [/code] tags around the code to preserve the formatting.
Go to Top of Page

Morten
Junior Member

Denmark
251 Posts

Posted - 15 June 2001 :  22:09:44  Show Profile
Thanks Richard

Now I have experiemend a bit with the codes in UploadEngine.asp. If Iīm
not totally lost; where to look for the filesize must be in this text
in line 95-97 in UploadEngine.asp:
-----------------------------------------------
intFileLen = len(objUpload.Files.Item(0).Blob)
if intFileLen > MaxFileSize then
strResult = "File is too Large to upload"

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

I tryed to ad the code "intFileLen" after the filename. And I was accually
getting a number. But Iīm not sure its counted in bytes. A picture of about 100 kb
is being displayed as a picture of about 60 Kb.
I also tryed with smaller files it alwayes comes out with about
60 % of the realsize - what are that code counting ?? - I just wish I knew

morten

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07