CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 upload - whats wrong

Print topic Send  topic

Author Message
will
Posted: 07/18/2003, 2:25 PM

surry guys... we just buy CCS, and im a beginner in this...

i have a page, where i want to upload a file ".pdf" but...

1.the upload only works when it alone in a page (nothing else in the
page)...

2.it save as "filename" the date, hour, and realname of the file
ex. realname: vbasicbegginer.pdf
name saved: 200307141549170vbasicbegginer.pdf
and it saved it in all the fields of the table
how can i tell CCS "just save the real name of the file"

3.i need the upload form in the same page as the record grid, and that CCS
save the "filename" only in that record field.

P.D.: we are developing a "programming courses site" in spanish... can we
traduce the CCS manual? ... and offer it to on our site (the site is free),
we're even planning to recreate the CCS download page (but in spanish) with
all its original links.. we neeed to ask to somebody?...it is legal...?

DonB
Posted: 07/18/2003, 2:53 PM


"will" <pcboss1976@hotmail.com> wrote in message
news:bf9ol1$iif$1@news.codecharge.com...
> surry guys... we just buy CCS, and im a beginner in this...
>
> i have a page, where i want to upload a file ".pdf" but...
>
> 1.the upload only works when it alone in a page (nothing else in the
> page)...

Does it simply do nothing or do you get an error when it does not work?
Are you possibly embedding the upload into a form, which could be
significant since you said the upload works when you have nothing else on
the page?

Take a look at the code in Common.asp (you have mentioned ASP before, I hope
that is still what you are using ,because that is what I am describing to
you). It checks for an upload and only does one if this condition is met:

InStr(Request.ServerVariables("CONTENT_TYPE"),"multipart/form-data") > 0

That probably is why the upload does not work. I have not explored this as
to why it is there or how a blank page may alter the condition.
You can track down the program execution by inserting lines like
PRINT "this is the beginning of Common.asp"
and accessing the page. It will let you see where the program is, and you
can even include variables in the "print" to see what things are set to
(such as what is the value of Request.ServerVariables("CONTENT_TYPE") ).

>
> 2.it save as "filename" the date, hour, and realname of the file
> ex. realname: vbasicbegginer.pdf
> name saved: 200307141549170vbasicbegginer.pdf
> and it saved it in all the fields of the table
> how can i tell CCS "just save the real name of the file"
>

I believe I read this was the behavior of the upload, for security reasons
and to avoid multi-user conflicts if two uploads are occurring at one time.
You no doubt will need to rename the file after it is uploaded, and this is
a simple matter to do with the FileSystemObject feature of ASP pages. YOu
can learn all about that (if it is something you are not familiar with) from
http://msdn.microsoft.com.

> 3.i need the upload form in the same page as the record grid, and that CCS
> save the "filename" only in that record field.

You may have to do the upload, rename it and put the filename into a session
variable, so you can have it available so it can be included in the record
field. Here I advise you look at the BeforeUpdate and beforeInsert events,
as these will allow you to read the session variable and copy it into the
UPDATE or INSERT before it is sent to the database.


DonB


>
> P.D.: we are developing a "programming courses site" in spanish... can we
> traduce the CCS manual? ... and offer it to on our site (the site is
free),
> we're even planning to recreate the CCS download page (but in spanish)
with
> all its original links.. we neeed to ask to somebody?...it is legal...?
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.