File Upload From FLEX Or ActionScript 3?

Jul 12, 2010

I would like to know how to upload a file from ActionScript 3 (From a FLEX Application) to a Dot Net Back End, maybe to an ASHX file, an ASPX file or similar and using C# as core backend language.

View 1 Replies


Similar Messages:

Flex - Updating An IFrame Without A Page Refresh Using Actionscript 3?

Jan 10, 2010

I would like to have a FLEX SWF Menu in .NET that is animated, and use button clicks to update an iFrame in an .NET 2.0 Ajax enabled application without a page update or refresh. If I use URLVaribles in Flex, The only way I've gotten to them to ASP.NET is via URL Page Navigation which always refreshes the screen. There is a LOADVARS function but I have not gotten it to work. Is there any suggestion on how one would do this??

Do I need to look into using JSON for Flex??? Or WebOrb???

This works fine... but with a page refresh (which is not cool)...

navigateToURL( new URLRequest( "http://localhost:50294/WEBAPP/Default.aspx?P=2&H=500" ), "_self" );

This does NOT work fine... (in fact it just loads the whole page .NET page in FLEX, not what I am looking for)

var variables:URLVariables = new URLVariables();
variables.P="1";
variables.H="400";
var request:URLRequest = new URLRequest();
request.url = "http://localhost:50294/Timber2/Default.aspx?";
request.method = URLRequestMethod.POST;
request.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, uploadComplete);
try
{
loader.load(request);
}
catch (error:Error)
{
trace("Unable to load URL");
}

View 2 Replies

Programmatically Upload Larger Files In Flex?

Mar 10, 2010

I created an application as part of an ASP.NET site. I would like to receive error notifications in my inbox whenever something goes wrong with that flash application.

As I do not have control over our mail server (which has a different domain name), I cannot establish a cross domain policy allowing me to send error emails to my inbox.

Instead, thought I'd send a request to an ASP.NET handler that sends an email on behalf of the flash app.

Now the problem: the error report should include a screenshot of the flash application at the time the error occurred. The FileReference class however only allows file uploads with user interaction (browse dialog) and cannot be used programmatically to send the screenshot to my ASP.NET handler. The plain old POST back only allows files up to ~200K.

Am I missing something or is there no alternative to :

using POST w/ a compressed or resized screenshot or forcing the user to first save a screenshot and then select it for upload?

View 1 Replies

AJAX :: Async File Upload Control - Check File Contenttype Before File Upload Starts?

Jan 13, 2010

I am using the async file upload control to upload to a image file. I want the user to upload only jpg files. And for that I am checking the uploadedfile content type in server side, after the upload complets. I wanna check this, before upload starts. There is one javascript method

function startUpload(sender, args){}

but how to access the content type of the file selected by user.

View 5 Replies

Web Forms :: How To Upload File And Save It To Oracle Database And View The Upload File Using C#

Feb 8, 2011

how to upload and save files to oracle database, and view file using C# .net and can upload one or more files in one webform.

View 1 Replies

Web Forms :: Can Upload A File On A Network Share Folder Using File Upload Control

Aug 6, 2010

I want to upload files to the web servers from the client machines.

Can i upload a file on a network share folder using file upload control?

I would like to create a share folder on a file server sitting next to the web server. If i upload the file from the network share folder instead of uploading it from the client machine does it make any difference?

Will the file be stored in a temporary location before copying to the final destination? Where will be the file stored in this case of uploading it from share folder?

View 1 Replies

Web Forms :: Unable To Upload File More Than 4MB Using The File Upload Tool?

Dec 10, 2010

I am using the File Uploader to upload files. It is working fine. But I receive the page can not be displayed when I try to upload a file>4Mb in size.

View 1 Replies

Web Forms :: Return XML To Flash/actionscript?

Mar 31, 2010

I have had a request come in to do this, and I remember doing this in a different way a couple of years ago but forgotten how it should work and how to make it work for this scenario: a swf will be doing POST/GET requests to an ASPX file.

this ASPX file will have methods to do specific functions. In the end, it will return back a custom XML back to the swf.This is all fine but here is the problem that I am having:how will the ASPX page know what method is to be "executed" along with the parameters? Parameters I understand will be obtained from querystring or form variables.How does one "send back" the result in XML? Do we do a write on the Response stream (setting the contenttype/mime type) or just return back an XML string on the method being called?

View 1 Replies

Actionscript 3 - Incorporating Flash Components In One Site?

Jan 21, 2011

I need to integrate ASP.NET into an existing Flash site. The site is heavily laden with Flash and needs to communicate with a SQL Server database. I want to use ASP.NET SQLDataSource for this purpose. Given that I need to integrate the two technologies for one web page on the site, do I need to make the site fully ASP.NET with embedded Flash objects? Or, can I just add a single ASPX page to the site that contains the web.config and connection string to SQL Server?

View 1 Replies

Web Forms :: Upload 2gb File Using File Upload Control?

Apr 1, 2012

i have problem in uploading 2gb video file using file upload control in asp.net, i have limit the maximum file size in web config file then also it shows error any remedy for that...

View 1 Replies

Web Forms :: Upload A File Without Using File Upload Control

May 14, 2012

I want to upload a file without using the file upload control in asp.net.

View 1 Replies

File Upload Control And Not Permitting User To Upload Over 500px In WIDTH ?

Sep 24, 2010

I have a file upload control on my page with a regular expression validator that handles the file format.

Users can upload files but I want the maximum WIDTH size to be 500px.

If any bigger I need to show a message advising the width is to great and stops them.

View 3 Replies

Web Forms :: File Uploader To Upload Files To A Folder Used For Upload

Jul 15, 2010

Im using a file uploader to upoad files to a folder used for upload.But the problem is this folder is a linux folder. I have made it a shared folder so that I can access from windows by samba. So, file transfer is successful when I'm using os but when I try to upload something from my websites uploader to this folder, this process is not successful. I have given all permissions to this folder.Don't know whats the problem.I have used both type of slashes for directory but still it is not successful.

View 4 Replies

Is It Possible To Restrict Users To Not Be Able To Upload .msg Or .gifs With The .net File Upload

Aug 11, 2010

I need to figure out a way to prevent users from uploading a couple file types in my vb.net page. How can I prevent users from uploading .msg or .gifs during a file upload?

View 3 Replies

Web Forms :: How To Stop An Upload Pop-up Box From Closing After A File Upload

Nov 16, 2010

I have a file upload area and would like to stop the pop-up box area from closing when the user has uploaded their file. Anyone know how I can do this ? this is the code:

[code]...

View 1 Replies

How To Use The File Upload Control To Upload Word Documents

Apr 5, 2011

Anyone know how to use the file upload control to upload word docs etc

View 3 Replies

C# - Unable To Upload Files Through File Upload Control?

May 31, 2010

i am trying to upload files through the ASP.NET File Upload control.

Every thing is working fine, except for the fact that when i try to upload the file on the server i am getting an error: (probably some authorization exception).

do i need to give some rights to the upload up there on the server. If so then for which account and do i need to restart the server after giving rights?

View 2 Replies

AJAX :: Attach A File Using File Upload Control And Send It In Email Along With Already Attached File

Apr 27, 2016

I have an asp.net panel having various controls including gridview. I have converted this panel into pdf and attached it as an email attachment using memory stream. Everything is working fine. Now I have an File upload control outside panel through which I have to attach a file and send it in mail along with the already attached panel. But I am unable to figure out how to do it.

View 1 Replies

How To Use File Upload Control To Upload The Files

Aug 23, 2010

i am using file upload control to upload the files in asp.net with vb.net as code behind. am storing the files in my local drive. my doubt is, how shall i read those file using asp.net application.

View 1 Replies

Vb.net - Upload Mutiple Images With One File Upload?

Dec 28, 2010

How to upload mutiple images with one file up;oad like in facebook or orkut using asp.net(VB).

View 1 Replies

ActionScript Syntax Error 1084 - Expecting Rightbrace Before Leftbrace And Var 'colour' Will Be Scoped To Default Namespace?

Feb 13, 2010

1084 syntax error; expecting rightbrace before leftbrace as well as var 'colour' will be scoped to default namespace. Im' not sure what is going on but it is interfering with my ability to debug. it is action script

1084 error

package {
import flash.display;
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.*;:

public class assgn extends Sprite
{
public function assgn()
{
var request = new URLRequest("C:UsersFujitsu UserDesktopprojects folder09_10");
var loader = new Loader();
loader.load(request);

[Code].....

View 2 Replies

Asp.net - Get Flex Modules From ASP MVC?

Aug 18, 2010

We re developing an ASP MVC application witch the View (aspx) has a Flex embed. This aspx/flex view is composed by a flex application and several modules.So, when we call the application url (http://localhost:9090/MyProject/Flex/Index),the server invoke the method the will return the ActionResult that represents this action, in this case the ~/Views/Flex/Index.aspx (with the Flex app). However when the ModuleLoader,in the Flex application, try to load a module an error occurs. The problem is that the Flex application canīt directly access the modules folder (~/Views/Flex/modules/module.swf)Are there any way to get the module through an ASP MVC action? Or the best approach is to allow the access to this folder through web.config?

View 1 Replies

PDF Won't Upload Using File Upload Control?

Jan 10, 2013

I'm trying to upload a PDF file using our web app. I'm using the FileUpload control. The file I tried to upload was 4.7mb in size. I was unable to upload this file. I tried uploading another PDF file that was 936KB in size and it was fine. What would prevent this. Does the FileUpload control have a size restriction on it?

View 2 Replies

Database Connection With Flex And C#

Feb 4, 2010

I've started with Flex recently, I've noticed that some plugin for Visual Studio exist, instead of buying a licence for another program (Flex Builder). I was wondering how I could manage to remotely connect to my database with a Flash/Flex application with the help of C#/Asp.Net. If I've correctly understood what I've read in the last few days, there is basically no way to 'query' to a database with Flex 3. So I suppose there is another way by using a webservice in C# on the database server that would respond to the Http query from Flex. Am I right or totally of the track?

View 3 Replies

Put Flex Charts In Application?

Jan 29, 2010

Is it possible to put flex charts in a asp.net application?

Any other easy to use chart controls, but fancy looking ?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved