Download the component, are very Variable
Hi all.
I tried to get a component upload work for a while now, but have some trouble to get one to do what I need. Recently, I found a component that does one thing, pretty much everything I want to bar spend an additional variable to the PHP script so I can name the files something unique.
My Flex code is-
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx".
creationComplete = "init ()" width = "600" height = "300" > "
< fx:Script >
<! [CDATA]
private var urlRequest:URLRequest;
private var fileReferenceList:FileReferenceList;
private var serverSideScript:String = " " http://www.davidtest.webcastglobal.com/upload/upload.php ";
[Bindable] public var ID:String;
private function init (): void {}
urlRequest = new URLRequest (serverSideScript);
fileReferenceList = new FileReferenceList();
fileReferenceList.addEventListener (Event.SELECT, fileSelectedHandler);
}
private function uploadFile (): void {}
fileReferenceList.browse ();
}
private void fileSelectedHandler(event:Event):void {}
var fileReference:FileReference;
var fileReferenceList:FileReferenceList = FileReferenceList (event.target);
var fileList:Array = fileReferenceList.fileList.
Download the first file that the user chose
fileReference = FileReference(fileList[0]);
Download the file to the script on the server side
fileReference.addEventListener (Event.COMPLETE, uploadCompleteHandler);
fileReference.upload (urlRequest);
update the status text
statusText.text = "Loading"... » ;
}
private void uploadCompleteHandler(event:Event):void {}
statusText.text = ' uploaded file: "+ event.target.name;»
}
[]] >
< / fx:Script >
< s:BorderContainer width = "300" height = "96" horizontalCenter = red '0' = '0' >
< mx:Label text = 'upload your CV"fontWeight = horizontalCenter"bold"="0"top ="10"/ >
< text mx:Label = "choose a file... '. "id ="statusText"horizontalCenter ="0"top ="35"/ >
< mx:Button click = "uploadFile (); ' label = horizontalCenter "Upload File" = "0" low = "10" / > ".
< / s:BorderContainer >
< / s:Application >
While my PHP code it
<? PHP
$tempFile = $_FILES ['Filedata'] ['tmp_name'];
$fileName = $_FILES ['Filedata'] ['name'];
$fileSize = $_FILES ['Filedata'] ['size'];
$id = $_POST ['id']
$newName = '$id'.'. doc';
move_uploaded_file ($tempFile, ".") / ». $newName);
? >
What I try to do is, when the user clicks the "Upload" button on the flex application file, after that they choose a file, it currently downloads this file using the given file name. But what I want to do, is to pass the variable "ID" for the PHP and use as file name instead.
Im a little confused on how to do it? I don't know where to include the code for the 'ID', normally I am occupied with HTTPSservice where you declare these things in the service.
Any help would be great. !
You should be able to add a parameter using URLVariables, then change your function init to something like:
private function init (): void {}
urlRequest = new URLRequest (serverSideScript);
var variables: URLVariables = new URLVariables();
variables.myFileName = "flexponential";
urlRequest.data = variable;
fileReferenceList = new FileReferenceList();
fileReferenceList.addEventListener (Event.SELECT, fileSelectedHandler);
}
And then in your PHP file you should be able to access these data through the post variable.
$myFileName = $_POST ['myFileName'];
Tags: Flex
Similar Questions
-
I get an error 643 since April and unable to install an important update. I tried to download the update, but your instructions on the Web are very confused. It's the only update that gave me problems. Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Ideas:
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
http://support.Microsoft.com/kb/KB976982
You receive the error 643 0 x or 0 x 80070643 when you try to install the updates of .NET Framework by using Windows Update or Microsoft Update
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://support.Microsoft.com/kb/971058
How to reset the Windows Update components?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If the above does not solve the problem, repost in the appropriate Forum:
It's updated operating system Vista, upgraded installation and activate Forum.
You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:
http://social.answers.Microsoft.com/forums/en-us/vistawu/threads
When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.
In this way, you will receive the best help.
See you soon.
Mick Murphy - Microsoft partner
-
The fonts are very limited and cannot be upgraded. We are looking for the ability to download fonts, maybe google.
Thank you.
PS touch is not available more since May. If adobe does more maintenance. They promised a new application with the same functions end of 2015. I've not yet seen.
-
. Files NEF (Nikon D600) in Camera Raw (Adobe CC) appear extremely saturated to the point of loss of data. When exporting, the images are very good. There is no update available.
As it appears in Camera Raw
Exported
In Bridge, open camera raw preferences and uncheck the option of graphics processor at the bottom of the dialog box.
-
Hello, now that I am back to my annual plan with payment each month creative programs cloud, made the payment came the confirmation, however downloading the programs are always identified as a test version, update this information?
allow 1 day working pst for your payment to process.
After this time, if there is still a problem, Troubleshooting FAQ: what should I do if I have a subscription, but my application acts as if I had a trial?
-
New laptop and download the applications is very slow
Just bought the new laptop is stuck with win8 as the only thing available. It took 2 days (11 hours) to open the account of ms to get to email. Now he's just hanging. Thought to download ms Pinball, game tried, after an hour, it was 8% done, stopped. This is typical of access to anything on the net. Pages that came in a second XP now take more than a minute to 8. Everything is delayed.
No I've not added anything, have not changed anything, have read the news and played cards.
Features are so sensitive that happening sites and programs if I place my hand on the keyboard.
It's horrible, I can get windows XP and remove windows 8?
Is there a way to make it useful?
HELP HELP
Your question is not very clear.
As long as you have internet connection, Microsoft Account opening should not take more than a few minutes and you can always connect to Windows 8 without Microsoft Account.
For new PC, first you need to run Windows Update and install all updates. Even if the updates to day will install automatically, but you can do it yourself too.
If your internet connection is not fast loading, it might be because update is ongoing enforcement and once installed all updates your PC would be quick. I'm not sure what you are referring to the sensitive features but it could be features provided by the manufacturer of your PC and not as in some Windows PC, you can use your mouse pad to open the start screen or scroll down.
It is NOT recommended to install Windows XP because it is supported and you download the update or support for Windows XP more.
-
Satellite M300 - driver downloaded, the files are corrupted
Hi all
I have a Satellite M300 when working there, I bought in Asia.
HARD drive died and had to be replaced with the nightmare of normal to find drivers, the main problem being the only site that recognizes the model number - PSMD4L Toshiba Asia. Unfortunately the dosent work section download drivers, I tried from different places, different computers etc. but all of the download files are corrupted and there is noway contact Toshiba Asia!
Frankly I'm amazed that a company like Toshiba doesn't have a handle on all the models produced around the world + support for drivers simply incredible!
How can anyway sorry yell someone has any suggestions, I get the drivers?
Cheers for any help
Rich
Why do you think that the drivers are corrupt?
Did you receive any error messages? If Yes, which?What drivers did you tried to install?
What operating system do you use? -
All the test prints are very good. I have cleaned the print heads, broken cartridges. I just replaced all the yesterday.
Today, I can't print black. The documents are great dimmed or blank pages come out. I use a MacBook 2007, 10.6.8. What else do you need to know?
Thanks in advance!
Hey @jas493,
Welcome to the Forum from HP Support. I hope you enjoy your experience here.
I see you have a recurring problem of print quality with your HP Photosmart 7510 e-all-in-one printer. I want to help you with this.
What you describe, it seems that you tried all HP recommended troubleshooting steps. Fortunately, given that your printer has a removable printhead, there are some other steps you can take to address the issue:
-
Besides above, I don't seem to be able to submit comments.
Version of Firefox is 7.0.1 and I am running XP Pro SP3.
Is he missing pictures then make sure you are not block images from certain domains.
- Check the permissions for the domain in the active tab in "tools > Page Info > Permissions.
- Check that the images are enabled: Tools > Options > content: [X] loading images automatically
- Check exceptions in "tools > Options > content: Load Images > Exceptions.
- See the tab "tools > Page Info > media ' for blocked images (scroll all the images with the cursor key).
If an image in the list is grayed out and there is a check mark in the box "block Images of..." and remove this mark to unlock the images from this area.
Make sure that you do not block the images of third permissions.default.images
There are also extensions (Tools > Modules > Extensions) and security software (firewall, antivirus) that can block images.
-
After that my guide is downloaded, the channels are all changed? Help!
I just recently moved and plugged my cable on my tour of office of Vista (HP) and climbed all of windows media center and after running the download including the Guide, I went to record some programs and tried the and selected record. Then, after a while, I decided to go through the canal to ensure that they paired with what the computer says, the channels have been, and they are not. So now my programs will not register because of the channels. How can I fix it? I can't find the help section in Windows Media Center. I can't even predict what the actual exposure channel is on, and in any case which should match. Please help me as soon as possible!
Thank you
On the Windows Media Center start screen, go to tasks, click settings, click TV, click on Guide:-
To change the settings of the existing channels in the Guide, click Edit channelsand then follow the instructions.
-
In Firefox all is very difficult to read, including this sentence. Fine on other computers.
There has been problems reported on Windows Vista with the Microsoft Update kb3013455.
Microsoft has released an update to solve these problems.
MS15-010: Description of the update of the Windows kernel mode driver safety: 10 February 2015:Difficulty for the degradation of quality text after security update 3013455 (MS15-010):
-
I tried all of the suggestions, including the removal of the inbox.msf etc.. I also tried to uninstall and reinstall Thunderbird, but none of them does not seem to work.
Is he hanging on the same message every time? If yes go to your email email providers web site and sign in to your account there. Read and delete the problem message and see if other messages download.
-
Some of these sites have used xara menus (which are based on javascript) for years without problems. Because I used Firefox as my browser by default since its first release, so I would have recognized the problem immediately if it was before version 7. Also, I run Firefox on my iMac with Lion; I don't know if the problem of menu-shift is also seen on the Windows machine with the new version of the browser. Well, I hope you can tell me a quick solution I can install on the affected sites.
But if you insist, try this version:
http://jeffersonscher.com/forumshots/xaramenu_1.js
I have not tried in older versions of Firefox.
-
Used for acceptable sound from computer speakers, now I can barely tell if someone speaks. Plug-ins and headphones work fine. I checked that all orders are at maximum volume, no help. Any suggestions?
Hello
1. were all changes to the system before the show?
2. deal with the issue with applications or specific?
3. the speaker works fine on other computers?
Try the next step and check if that helps.
Click on the below link to get the procedure run the audio troubleshooter for fox common audio problems.
http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-sound-problems
Hope the helps of information.
-
links to download the software are not valid and not working
I have the disk in CS5, but we went to 6 in January. I don't have the product on my computer and so I atempted to install it by clicking Download th link in the email I recived in January but it no longer works. I have my serial number, but I'm so confused as to how I can get this added to my computer. I still have the disk of CS5 but don't know what to do
Rmerrill,
Please go ahead and follow the links and instructions in the link below:
http://forums.Adobe.com/thread/981369
-Florian
Maybe you are looking for
-
I use windows 8.1 Professional 64 bit on HP Pavilion 15 t-n200 Notebook PC and I am not able to find the drivers for the device PCI following on the HP website. Can anyone know where to find the drivers for it? PCI\VEN_10EC & DEV_5227 & SUBSYS_216310
-
Apply the password policy when you reset password
I want to apply password history, age Minimum and age Maximum while resetting the password in Active Directory. There is no way to do before resetting the password being an administrative activity, but it's in the news that we can apply this policy e
-
Message from extended to reinstall and cd/dvd player is not reading or writing.
Original title: my cd/dvd is not reading or writing. My cd/dvd is not reading or writing. I get a message from extended player of resettlement. How and where?
-
Gateway MD series laptop Vista OS. I tried to install disks system recovery, ordered the bridge. The machine do nothing, black screen, no prompt, no way to install the OS, no start upward
-
PowerEdge T410 won't do anything when you press the power button / stop.
My work has recently retired this t410 server. It worked without any problems when he was arrested. I had to remove and destroy the hard drives from the system. After that, I was allowed to bring home for my own use. I installed a new sata drive and