Uploading File classic ASP
Hi
Im a new flex developer and i making an app that insert data into a db and upload a file in a path web server, but my problem is when i send to asp my archive there is no way to save on the path and there is no error message, the asp works when i use html for send it a file it works perfectly but when i send it a file with flex not , so i need your help
code as3 when user clicks on a textinput
archivo0.browse([filtro]);
archivo0.addEventListener(Event.SELECT, onFileSelected);
archivo0.addEventListener(IOErrorEvent.IO_ERROR, errorUp);
archivo0.addEventListener(SecurityErrorEvent.SECURITY_ERROR,erro rUp);
archivo0.addEventListener(Event.COMPLETE,completado);
protected function onFileSelected(e:Event):void {
e.target.addEventListener(Event.COMPLETE, onFileLoaded);
e.target.load();
protected function onFileLoaded(e:Event):void{
var nombrearchivo:URLVariables = new URLVariables();
nombrearchivo.nombre = e.target.name;
peticion.data = nombrearchivo;
e.target.upload(peticion);
trace(">>>>442",e.target)
protected function errorUp(e:Event):void {
Alert.show(e.toString());
protected function completado(e:Event):void {
Alert.show("Archivo uploadeado");
AND THE CODE OF ASP IS
<%
Response.Buffer = True
' load object
Dim load
Set load = new Loader
' calling initialize method
load.initialize
' File binary data
Dim fileData
fileData0 = load.getFileData("nombre")
' File name
Dim fileName
fileName0 = LCase(load.getFileName("nombre"))
Dim pathToFile
pathToFile0 = Server.mapPath("uploaded/") & "\" & fileName0
' Uploading file data
Dim fileUploaded
fileUploaded0 = load.saveToFile ("nombre", pathToFile0)
' destroying load object
Set load = Nothing
%>
I found a solution, posting in case somebody else has the
same problem.
if ( Uploader.Files.Count > 0 ) then
'do file processing
end if
Thanks all
David Pearson
Similar Messages
-
Classic ASP validate form input File type
I need to know how to check if is a value is in the input
field of type file in classic ASP. The input field name and id is
file, and type is file. The form type is multipart/form-data and
name form1.
I am using Upload.asp object by Jacob Gilley to handle my
uploading. If the user submits without selecting a file to upload;
the site errors out. The user should have the option to submit with
or without a file. I need to validate on the server side.
I try
len(Uploader.form("file"))) > 3
Thanks for any help
David PearsonI found a solution, posting in case somebody else has the
same problem.
if ( Uploader.Files.Count > 0 ) then
'do file processing
end if
Thanks all
David Pearson -
Problem with ASP "Create form wizard" or "Update form wizard" and "Upload file"
Until now it used version 3,7 and dinamyc had never had problems with "Create form wizard" or "Update form wizard" and "Upload file" but now when I create the form and shipment a file leaves an error to me:
Error:
Error al borrar directorio. Error de seguridad.
Developer Details:
Error al borrar directorio. Error de seguridad. El directorio 'E:\web\eds\maqueta\' esta fuera del directorio base 'E:\web\eds\maqueta\fotosactivi2\'. (FOLDER_DEL_SECURITY_ERROR)
tNG Execution Trace - VIEW
* tNG_insert.executeTransaction
o STARTER.Trigger_Default_Starter
o tNG_insert.doTransaction
+ BEFORE.Trigger_Default_FormValidation
+ tNG_insert.prepareSQL
+ tNG_insert.executeTransaction - execute sql
+ tNG_insert.postExecuteSql
+ AFTER.Trigger_FileUpload*
+ ERROR.Trigger_Default_Insert_RollBack
* tNG_insert.getRecordset
* tNG_insert.getFakeRsArr
* tNG_insert.getLocalRecordset
* tNG_insert.getFakeRecordset
* tNG_insert.getFakeRecordsetHello,
Please see this thread http://www.adobeforums.com/cgi-bin/webx/.3bc3c678/2
for the same problem.
Regards,
Razvan RACASANU -
Classic ASP on IIS - Timeout Session not expiring
I have an classic ASP website on IIS(both IIS 6,and 8) and both perform the same. We've had this issue for years on IIS 5,6,7,8 and never could figure it out. I have a session timeout setting on the IIS application pool of 120 minutes. I do not have
a session.timeout setting in any of the ASP code itself. I do have a Session.Abandon in the global.asa file, which works well.
Most of the time if a user is idle for > 120 minutes, it gives them a message that their session has timed out, expires the session and redirects them back to the login page. This is how it should work and 95% of the time is does.
The issue I have is that about 5% of the time, some users seem to be able to keep the session alive beyond the 120 minutes. Some for days.
I'm wondering if anyone has any ideas what could cause this? Some ideas that I thought of are below...but I really don't know.
I assume they keep their browsers open for days, but could a user that has a browser window open but sitting idle AND on another TAB of that same browser be active on other websites? Does that activity make the TAB with my application still active/not idle?
I've tested this on several environments but not able to replicate.
Some type of software like a URL filter, proxy server or Antivirus could be causing their browser to not be idle?
Of course a user can keep the session idle if they use the app beyond the 2 hours, but it is rather unlikely they do this, especially for days.
Its hard to troubleshoot since the users are all customers with different browsers and environments. So I have no clue if its a certain browser, browser version, or their PC/network environment.
Any ideas?
pabloHello,
forums.iis.net also has a Classic ASP forum.
As Microsoft's IIS forums are on a different platform, we cannot move the question for you.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Upload files box in form on CS6
I'm a student learning Dreamweaver and I am creating a form on a page to upload files or (attach files) but I can't find a way to create the box. I do have a server to post to if that matters. My current form code looks like this
<form name="form1" method="post" action="">
<p>Quote registration form
</p>
<table width="400" border="0" cellpadding="4">
<tr>
<td width="175">First name:</td>
<td><label for="fname"></label>
<input type="text" name="fname" id="fname" tabindex="1"></td>
</tr>
<tr>
<td width="175">Last name:</td>
<td><label for="lname"></label>
<input type="text" name="lname" id="lname" accesskey="L" tabindex="2"></td>
</tr>
<tr>
<td width="175">Business name:</td>
<td><label for="bname"></label>
<input type="text" name="bname" id="bname" accesskey="B" tabindex="3"></td>
</tr>
<tr>
<td width="175">E-mail:</td>
<td><span id="sprytextfield1">
<label for="Email"></label>
<input type="text" name="Email" id="Email" accesskey="E" tabindex="4">
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
</tr>
<tr>
<td width="175">Phone number:</td>
<td><span id="sprytextfield2">
<label for="phone"></label>
<input type="text" name="phone" id="phone" accesskey="P" tabindex="5">
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
</tr>
<tr>
<td width="175">Address:</td>
<td><label for="address"></label>
<input type="text" name="address" id="address" accesskey="A" tabindex="6"></td>
</tr>
<tr>
<td width="175">How should we contact you?</td>
<td><label for="contact you"></label>
<select name="contact you" id="contact you" accesskey="C" tabindex="7">
<option>Phone</option>
<option>E-mail</option>
<option selected>Mail</option>
</select></td>
</tr>
<tr>
<td width="175">What do you need?</td>
<td><span id="sprytextfield3">
<label for="what do you need"></label>
<input type="text" name="what do you need" id="what do you need" accesskey="W" tabindex="8">
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
</tr>
<tr>
<td width="175">Upload pictures:</td>
<td> </td>
</tr>
<tr>
<td width="175">Upload files</td>
<td> </td>
</tr>
</table>
<p> </p>
</form>
please keep in mind I have a pretty basic knowledge of DW
ThanksIf your server supports PHP, this form-to-email processing script from DB masters supports attached files, plus it thwarts spam & conceals your e-mail address from robots.
Formm@ailer PHP from DB Masters
http://dbmasters.net/index.php?id=4
If your server doesn't support PHP, you'll need to find an appropriate script in a programming language you can use -- asp, aspx, perl, etc...
Nancy O. -
Can anyone point me in the right direction please?
I'm looking for a 'comprehensive' shopping cart system
written in 'Classic
ASP' and editable in DW8.
It needs to have a fully functioning admin (backend) system
and also enable
me to add asp code as and when required.
Bit of a tall order I guess, but my reason for the question
is that at
present we're using 'Actinic v8' and it is rather restrictive
in both
functions and design ability.
Hope someone can advise.
Thanks in advance
Kind Regards
AndyThanks for that Dave - I've emailed you
Andy
"Dave Buchholz" <[email protected]> wrote
in message
news:[email protected]...
> Andy,
>
> There are none that I am aware of but if you want to
contact me offlist
> I'll see what I can do for you.
>
> --
>
> Dave Buchholz
> I-CRE8
> www.i-cre8.co.uk
> Skype ID: I-CRE8
>
>
> "Andy" <[email protected]> wrote in message
> news:[email protected]...
>> Thanks Dave
>>
>> Do you know if they offer any screenshots of this? I
can't seem to find
>> any on their site.
>>
>> Andy
>>
>> "Dave Buchholz"
<[email protected]> wrote in message
>> news:[email protected]...
>>> Not Lee but I can tell you that eCart comes with
a sample store that
>>> features a admin backend that you could modify
for your own needs.
>>>
>>> --
>>>
>>> Dave Buchholz
>>> I-CRE8
>>> www.i-cre8.co.uk
>>> Skype ID: I-CRE8
>>>
>>>
>>> "Andy" <[email protected]> wrote in message
>>> news:[email protected]...
>>>> Thanks Lee
>>>>
>>>> Excellent review -
>>>> After looking into WA e-cart, i'm getting a
little ocnfused with their
>>>> product range.
>>>> Does the e-cart come with a back-end system?
or do you have to purchase
>>>> another ackage from them to do this?
>>>>
>>>> Thanks Again Lee
>>>>
>>>> Andy
>>>>
>>>> "Lee" <[email protected]> wrote
in message
>>>> news:[email protected]...
>>>>> I've been using WebAssist. It's good and
bad depending on what you
>>>>> need it to do. It offers a lot of
flexibility but when you want
>>>>> something unique it can be difficult to
implement.
>>>>>
>>>>> For me, it wasn't so much the cost of
the program but the time it took
>>>>> to build what I needed. Had I a
programmer sitting next to me, I would
>>>>> have been very satisfied with WebAssist.
Since I am not a programmer I
>>>>> often ran into brick walls with much of
the process.
>>>>>
>>>>> Don't count on too much help from them
unless you are ready to pay for
>>>>> help. I don't blame them, this is very
difficult stuff. Their help
>>>>> files are adequate but often lack the
resource that is needed to
>>>>> really understand the workings of the
cart. They have a forum but
>>>>> essentially, the responses to the posts
only suggest a solution and
>>>>> often it's not as soon as you might
wish. In order to get real help,
>>>>> you have use help credits that come with
the original purchase. Once
>>>>> those are gone, you can buy more. They
also have a good mentoring
>>>>> program that you can purchase for, I
think, $150 a shot. It's helpful
>>>>> and I would just budget a few of those
right off the bat. In my case,
>>>>> doing this earlier on would have saved a
lot of grief. I wish I would
>>>>> have gotten help earlier, instead, I
built some things in a way that
>>>>> didn't mesh very well with the cart.
>>>>>
>>>>> In many ways I wonder if I should have
gotten something that was more
>>>>> canned but it's hard to say what the
right answer is. Something that
>>>>> was canned may not have offered what I
needed to have. If you're not a
>>>>> programmer, for simple carts without a
lot of complicated programming
>>>>> needs, WebAssist is probably pretty
good. If you are a solid
>>>>> programmer, WebAssist is even a better
choice. However, if you have a
>>>>> complicated project/s and you have
little programming skills, beware.
>>>>>
>>>>>
>>>>>
>>>>> The pluggins can be a little buggy
sometimes but on average, I am
>>>>> satisfied.
>>>>>
>>>>>> Thanks Guys!
>>>>>> Anyone got any thoughts or
experience with using 'cartweaver' or
>>>>>> 'webb assist's e-cart'?
>>>>>>
>>>>>> Thanks
>>>>>> Andy
>>>>>>
>>>>>>
>>>>>> "Andy" <[email protected]> wrote in
message
>>>>>>
news:[email protected]...
>>>>>>> Can anyone point me in the right
direction please?
>>>>>>> I'm looking for a
'comprehensive' shopping cart system written in
>>>>>>> 'Classic ASP' and editable in
DW8.
>>>>>>>
>>>>>>> It needs to have a fully
functioning admin (backend) system and also
>>>>>>> enable me to add asp code as and
when required.
>>>>>>>
>>>>>>> Bit of a tall order I guess, but
my reason for the question is that
>>>>>>> at present we're using 'Actinic
v8' and it is rather restrictive in
>>>>>>> both functions and design
ability.
>>>>>>>
>>>>>>> Hope someone can advise.
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>>
>>>>>>> Kind Regards
>>>>>>> Andy
>>>>>>>
>>>>>>
>>>>
>>>
>>>
>>
>>
>
> -
How can I handling Upload file?
Hello:
I have the HTML file can Upload file but how can I
handling the upload file in JSP or Servlet?
Have any class can use?
Could you give me an examples?
Thank so much for your solution.http://www.jspsmart.com/scripts/pub/tpl/ShowTplADV_01.asp?P=256&L=EN
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html -
Best way to produce PDF output from Classic ASP
I have Adobe Professional 9.2 and LiveCycle ES Designer 8.1. I need to change a Classic ASP web application to produce a PDF report. The way I see it I have three options:
1) create native PDF output using open source libraries.
2) create an FDF form with Adobe Pro as a template and use FDF libraries from Adobe to substitute text in the template
3) create an XML form with LiveCycle as a template and do direct text substitution into the XML.
I created a PDF with LiveCycle and prior to saving, unchecked the "save PDF files compressed" in tools/options. I don't want any text boxes, just labels, and in some of the labels I will put distinguishable text. When the web application uses the template it will find various text strings in the XML stream and substitute.
What's the best way to do this? Is there a better way of doing substitution into the LiveCycle template? I would like to stay with LiveCycle. But from code samples I've seen, FDF substitution is very straightforward and possibly easier. I also thought LiveCycle is supposed to be the way to go instead of Adobe Pro. ThanksI cannot speak about theother methods but I can speak about the XFA method. In most cases people will bind the xml to the rawValue property of the field thereby filling the field with the value. However there are other bindable properties. Caption is one of them. first you have to turn on the Dynamic Properties. Click on th efield you want to control on on the Object palette click the icon as shown below:
A new menu will open like this:
Turn that option on and the Caption will turn a different color and will become a link. Click on the link and then you can map the caption to a node in your XML structure. This assumes that you have created a Data Connection to bind with.
Paul -
Classic ASP web app trying to acces remote SQL Server.
Hi
I have a classic asp web application which accessing a remote SQL Server 200. I am trying to connect using the following connection string in Global.asa file. For some reason not connecting to the remote SQL Server 200. The string is as follows.
Session("dsn") = "provider=SQLOLEDB;app=AppName;server=SERVERNAME;uid=;password=;database=DBName;Trusted_Connection=No"
Session("datadsn") = "data provider=SQLOLEDB;app=AppName;server=SERVERNAME;uid=;password=;database=DBName;Trusted_Connection=No"
Session("server") = "SERVERNAME"
Let me know if I am missing something or doing something wrong?
VarunSQL Server Error Log has no error
But I found couple of errors in Application EventViewer
The VB Application identified by the event source logged this Application Globalization: Thread ID: 5312 ,Logged: -2147168246 New transaction cannot enlist in the specified transaction coordinator. Error Source: Microsoft OLE DB Provider for SQL Server->ValidateUser
A caller has attempted to propagate a transaction to a remote system, but MSDTC network DTC access is currently disabled on machine 'MyMachineName'. Please review the MS DTC configuration settings.
Varun -
Help with uploading files through form
Hey,
I have a website for a sign business and I'm trying to make
it so people can upload custom artwork. I am using an ASP Formmail
script from I think it's www.brainjar.com. If I understood
correctly from the directions, I can't upload files through that
script and I tried it once and it did not work. If anyone has any
ideas then please help. Thanks
JeremyFor security reasons many shared hosts don't permit file
uploads.
Try this in the interim
http://www.yousendit.com/
--Nancy
"dayencom" <[email protected]> wrote in
message
news:epo2ql$dsb$[email protected]..
> I just tried contacting my hosting provider:
www.ixwebhosting.com and the
guy
> was not helpful at all. He said that their hosting does
not support
uploading
> files. So I am drawing a blank now. Is there any way to
use maybe another
site
> to upload?
> -
Have XI Developer, do I need Enterprise or CR XI Server to run Classic .asp
Hi,
We've upgraded from CR 8.5 to CR XI with a new Windows Server and new SQL Server. Do I need to purchase CR Server or BO Enterprise to make Classic ASP applications that open .RPT files created under the old version?
I can't get the .RPT files to open. Seems like the ActiveXViewer isn't loading, but it may be something else.
ThanksThat specific functionality is no longer supported.
Here's the options:
1. Create an ASP application using the Report Designer Component SDK to retrieve the rpt file and display. You have the RDC as long as you have XI Developer edition. One caveat is that the RDC is deprecated with XI Release 2, and is no longer available with Crystal Reports 2008, the newest version.
2. Create an ASP.NET application using the Crystal Reports .NET SDK to retrieve the rpt file and display. You have CR.NET with the Developer edition.
3. Crystal Reports Server or BusinessObjects Enterprise supports "managed URL reporting", where you'd publish the rpt to be managed by the Enterprise system. Then you can refer to the report using a URL.
Sincerely,
Ted Ueda -
Hi everybody.
I have a question...if we upload file by using htmlb:fileupload..how can I put a default filename? how?
and is possibile hide the input field?
Thanks...
AndreaHi,
Again, automatic upload is not possible in HTML(B).
For security reason, file upload can NOT be set automatically within the command. This is a restriction of the web browser itself.
If you want to persist, have a look at things like
http://www.motobit.com/tips/detpg_uploadvbsie/
There are downsides:
it works with ASP and Activex only and it's not secure.
See also things like
http://www.iopus.com/imacros/demo/v4/file-upload.htm
Re: To access a table in quality from Dev
Re: APO Cutover - Check lists / Best practices;�
Eddy
Discover the new S(D)N search plugin for Internet Explorer 7 AND Firefox 2 in this <a href="/people/eddy.declercq/blog/2006/11/13/the-beloved-in-sweet-harmony log</a> -
Recently we moved classic asp application+ vb6 com components from W2K3 server to W2K8 server.
The only change made in the vb6 component is upgrade from MSXML 2.0 to MSXML 6.0. These vb6 components are compiled into dlls and registered as COM components on the server.
The issue we are facing right now is that asp pages are taking a lot of time to load.
The functionality which used to take 8-10 sec is now taking around 40 seconds.
We inserted the logs and found that all the functions in vb6 code which are related to MSXML 6.0 upgrade have caused the slowness in the application.
On further research, we found that vb6 modules which uses 64 bit version of MSXML6.0(present under C:\Windows\System32) to load XML documents takes over two times longer to load an xml doc which uses 32bit version of MSXML6.0. (present under C:\Windows\sysWOW64)
Microsoft has provided a hotfix for this. Please see below url.
support.microsoft-com-kb-2799406
We already tried this hotfix but it did not fixed the performance issue.
Question:
1) On W2K8 machine, we are unable to use MSXML6.0 present under C:\Windows\sysWOW64. Whenever we try to reference to this location it by default references back to C:\Windows\system32. We also opened the vb project file in a notepad and changed the reference
location and opened the Project again but no success. Can anyone suggest what can be the probable solution to fix this?
Current Scenario:
Reference=*G{F5078F18-C551-11D3-89B9-0000F81FE221}#6.0#0#..WINDOWS-System32-msxml6.dll#Microsoft XML, v6.0
Expected Scenario:
Reference=*-G{F5078F18-C551-11D3-89B9-0000F81FE221}#6.0#0#..-WINDOWS-sysWOW64-msxml6.dll#Microsoft XML, v6.0
2) Once we compile this vb6 code to a dll by having a reference to this sysWOW64 folder, how to ensure/confirm reference from Syswow64 will be picked up once it will be on W2K8 server?
3) Also if you can suggest what can be other areas we should target/think of for resolving this performance issue?I have encountered the exact same problem with msxml6.dll that is described in the latter part of you statement. Had you come up with a possible solution?
-
Files "SmartViewerHTMLFrame.asp" and "SmartViewerHTMLPage.asp"
Have installed Crystal Reports 9 on PC (WIN XP), and 2 files: "SmartViewerHTMLFrame.asp" and "SmartViewerHTMLPage.asp" are missing. Anyone can tell when I can find them! Thanks!
Thanks Ludek!
No, we are not upgrading. We purchased V 9 simply because the application from which we want to produce reports is an old (classical) ASP app. We are looking at producing reports using CR and HTML Reports and let the user choose.
I forwarded your posting to the developer, and here is what he is saying:
"I actually used the HTML Viewer about 10 years ago when the CR version was 6. The converted HTML version was really ugly. Therefore, the vendor just removed the two files from their package for the newer version of CR application because nobody uses the HTML viewer today. Anyway, I guess we have no choice and have to write the HTML report from scratch. It is almost ready."
So, it looks like he is doing it from scratch, and is almost done.
Thanks very much for your assistance.
Andy -
Adobe Muse won't publish (Error uploading file)
After making simple animations using Adobe Edge Animate it seems as though none of the assets will publish with my site after importing them into Muse.
In Edge animate I saved for "web animation" and published. Then I went to muse and hit "place". I went to preview and everything works fine. When I go to publish there are always errors in uploading my assets with '.png' extensions.
Any help is much appreciated. I have completely scrapped my website and created another, reinstalled Animate and have renamed all my files, I'm not sure whats wrong here.
I got one animation working, and that can be seen here under the Photography section, but I have multiples that will be shown on my page at one time.
http://chasebodydesign.businesscatalyst.comI get the error uploading file everytime I try publishing the animation.
Maybe you are looking for
-
Read file from URL and save to FTP
Hi, I have worked in java few years back, now I am out of touch. My friend asked me to create an applet program for him which he can use to download a file from remote location to his ftp server. For e.g. File http://www.demo.com/filename.avi Saved t
-
Hi, Just updated my image setter software. Most applications do not really support Freehand anymore. The work-around is to go through the print dialog box in order to send a press-ready PDF. For this to work (support Freehand), I had to go into Adobe
-
Library list with tilde (~) character - now ignored
Hi on my music lists on my other ipod, I used the ~ character before a genre to move it to the top so I wouldn't have to scroll through a pile of them. Now, the new version ignores the tilde. Is there a way to revert so that the ~ is not ignored, and
-
RH_RESOLVE_RESPONSIBILITIES
Hi Abap Gurus, Is there any alternate FM for RH_RESOLVE_RESPONSIBILITIES . Please find my code and Questions in a nutshell !! FM Used - RH_RESOLVE_RESPONSIBILITIES CALL FUNCTION 'RH_RESOLVE_RESPONSIBILITIES' EXPORTING act_object = p_role search_date
-
I use Lightroom to create a slideshow and then export it to software to burn to DVD to play on a TV. When i view it on a computer the pictures are fine, when i view them on the TV the aspect ration is wrong. Can anyone tell me what I'm doing wrong