Php :: Adding Unobtrusive Progress Bar To Old-school File Uploads

Oct 30, 2009

You all know the new generation of fancy, mostly Flash-based file uploaders like SWFUpload that can show a progress bar while uploading - a great improvement especially for shaky and low-bandwidth connections.

However, these uploaders all bring their own logic of how to handle uploads on the client side. I am looking for an unobtrusive way to "fancify" existing, classical file uploads, i.e. introducing a progress bar to normal file upload forms.

Due to the architecture of uploading files, this is most likely not possible without some tweaking on the client side.

I am looking for a solution that keeps the tweaking to an absolute minimum, e.g. a component that adds itself to the onsubmit event of a normal form, performs the file upload, displays a nice progress bar, puts the resulting temporary (server side) file path into the form, and submits it. On the server side, I just have to modify my script to use the file path provided by the flash uploader, instead of $_FILES and consorts, and think about security for a moment.

This is not exactly what all the Flash-based uploaders do: They can use data from a form, but they do not provide possibilities to submit the form as is, what is what I'm looking for. I am looking for a (probably) Flash based upload function taken a step further.

View 6 Replies


Similar Posts:


Jquery :: Uploadify - Single Progress Bar For Multiple Uploads

Mar 25, 2011

Is it possible to have a single upload progress bar with multiple file uploads using uploadify?

View 2 Replies

Php :: Large File Uploads From Webpages?

Apr 27, 2010

I code primarily in PHP and Perl. I have a client who is insisting on seeking video submissions (any encoding) from the public via one of their pages rather than letting YouTube do its job.Server in question is a virtual machine and I can adjust ini settings for max post, max upload size etc as needed.My initial thought is to use a Flash based uploader with PHP on the back end but I wondered if someone might have useful advice and experience on the subject?

View 6 Replies

Php :: Multiple HTTP File Uploads?

Jan 6, 2012

I'm looking for a tool to facilitate mulitple webpage file uploads from a single file browse dialogue. I know this has been asked previously, but I can't find anything current.I'd like to check file size prior to upload, and I gather Flash is still the only way to do that cross-browser? Ideally, I'd like an upload progress metre.I'll be using Linux and Apache servers, but don't have access to install add-ons such as PHP APC. Again, I assume something flash-based is the only option there?

I've looked at SWFUpload, but that appears to be another of these projects where the developers have become quite zealous and turned a simple concept into a full suite of tools for the masses.It seems quite cumbersome and I don't think I want to use it for my purpose.I'd prefer not to have to write something from scratch for this.suggest a non-Flash alternative if there is one? I do need full cross-browser compatibility without too many layers of degradation, so anything HTML 5 probably isn't what I want.

View 1 Replies

Php :: Why Are Multiple File Uploads Not Simple Without Flash/.NET

Nov 26, 2009

The only tools/plugins I've seen online that allow for multiple files to be selected for upload through one single dialog box using a SHIFT or CTRL click action (as opposed to clicking on a single file per for file uploads) exist for controls made in Flash/.NET/Java, not just straight Javascript/HTML/PHP.

Why is that the case? I'd imagine that if possible, site developers would look to having less dependencies on different technologies rather than more.

View 3 Replies

Javascript :: Handling File Uploads With Google Gears?

Feb 18, 2010

I've been using this method of file uploading for a bit, but it seems that Google Gears has poor support for the newer browsers that implement the HTML5 specs. I've heard the word deprecated floating around a few channels, so I'm looking for a replacement that can accomplish the following tasks, and support the new browsers. I can always fall back to gears / standard file POST's but these following items make my process much simpler:

Users MUST to be able to select multiple files for uploading in the dialog.I MUST be able to receive status updates on the transmission of a file. (progress bars)I would like to be able to use PUT requests instead of POST I would like to be able to easily attach these events to existing HTML elements using JavaScript. I.E. the File Selection should be triggered on a <button> click. I would like to be able to control response/request parameters easily using JavaScript.

An example of uploading code using gears:

// select some files:
var desktop = google.gears.factory.create('beta.desktop');
desktop.openFiles(selectFilesCallback);

[code]....

Edit: apparently flash isn't capable of using PUT requests, so I have changed it to a "like" instead of a "must".

View 2 Replies

Flash :: Player 10 Security Model For File Uploads?

Feb 18, 2012

I've been reading about the security restrictions for file uploads in Flash Player 10.According to the FileReference docs for upload(), the upload does not have to be triggered by a user-initiated action (the browse() does, but that's another story). If it did, that would force an awkward user experience for multi-file uploads, since only one upload can occur at once -- so the user would have to click (or press a button) once per file to initiate the upload, but only when the previous file had finished uploading.

[Code]...

View 2 Replies

Actionscript :: Flash Builder Network Monitor Not Recording File Uploads?

Jul 31, 2011

I'm uploading an image file with upload() of a FileReference object however the network monitor in Flash Builder doesn't report anything. Is that normal behavior? A google search didn't return anything.

View 1 Replies

Adding A Progress Bar?

Aug 14, 2009

I have created a progress bar using AS2 before but I only vaggly remember how I know that it involes using some code that deals with percentages but other then that I don't remember how to do it and I really don't remember how to apply it to my my .swf. and have it appear in my HTML page.My flash file was created using AS2 in Flash CS3

View 1 Replies

ActionScript 3.0 :: Adding A Progress Bar To Loader?

Aug 19, 2010

I have a xml image gallery and I want to add a simple progress bar component from flash cs5 to the thumbs when they 1st load up in the carousel.

I understand about the progress bar and how it works and I have tried all day to insert the correct code into my project but I just can't seem to get it right. I dont want to use buttons for the progress bar as demonstrated by Republic of Code, I would just like the progress bars to load when thumbs are loading.

I have included below the progress bar AS3 code from the site "republic of code" which I have been learning from. Also below is the code from my xml gallery.
 
progress bar AS3 code
import fl.controls.ProgressBar;
import fl.controls.Button;

[Code].....

View 3 Replies

ActionScript 3.0 :: Adding Play And Progress Bar To A Video Playlist?

Jun 13, 2010

Get away from using flashs skin and use my own play and stop buttons progress bar.Be able to use an autoplay within the script and not use the parameters autoplay. using which is working fine. I just want to be able to have more control by being able to write code for the above activities.

package {
import flash.display.Sprite;
import flash.events.Event;

[code].....

View 1 Replies

Professional :: Adding A Progress Loader To A Dynamic Text Field / ScrollPane

Apr 28, 2011

I have a dynamic text field which is loading images from an external html.  This text is named scrollPaneImage and is a child of a movieClip called scrollPaneContent.  I then load scrollPaneContent into a scroll pane named scrollPane
 
When the user interacts with my swf different images are loaded into scrollPaneImage. Since some of the images take a few seconds to load, I'd like there to be a progress loader displayed in the scrollpane.
 
I have tried adding the progress event listner to the dynamic text, the movie clip and the scrollpane and cannot get it to respond or track the loading.

scrollPaneContent.addEventListener(ProgressEvent.PROGRESS,reportProgress);
function reportProgress(e:ProgressEvent):void {
trace(e.bytesLoaded + " loaded out of " + e.bytesTotal);
trace("LOADED");
}

View 13 Replies

Javascript :: Flash Library For File Upload With File Size Limit And Progress Bar?

Jan 13, 2012

Is there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.I found these (using flash):

Uploadify - not many releases, latest 12/2010, no documentation (!)
SWFUpload - latest release 03/2010, documentation
fancyupload - looks buggy.

phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?) plupload New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?

View 2 Replies

Create A Progress Bar (248px Wide) With A Slider That Moves According To The Movie Progress

Jun 4, 2010

I have an SWF movie (1375 frames) and created a progress bar (248px wide) with a slider that moves according to the movie progress. I'm doing that next way:Calculating the distance for the slider to be moved each frame (248 / 1375) On each ENTER_FRAME moving the slider for the calculated distance The problem is - the movie ends far before the slider reaches the end of the progress bar.

I'm thinking that the distance (Step 1) is is somehow ends floored by Flash and the actual distance it moves the slider is smaller than required. That's why the movie ends, but the timeline control just passed the 2/3 of its way. My question is - is there any solution for the problem? Or any other way to go, if it's a wrong one?

View 2 Replies

Flash Game For School Project?

Dec 1, 2010

we had a school project to make a device. My partner said that we should make a computer game for our school project. I asked in another forum if it is possible to do it in less than a week. They told me flash is the best for beginners. I was thinking of making a clone of hangaroo but replace it with another animal and my country's language. Is this possible in flash? Is there noob-friendly tutorials out there that explains the basics of how to make a hangaroo style flash game?

View 2 Replies

ActionScript 3.0 :: Upload It To School Server?

Oct 20, 2009

Edit, it works when i upload it to my school server!

View 1 Replies

Getting The Progress Bar To Unload Once File Loads?

Aug 14, 2009

I have have applied the progress bar from the componets panel in Flash CS3 using AS2 and I have been able to make it function: however, I have not been successful in getting the progress bar to unload once my file loads. I have tried a couple of things like using an if statement and the unLoadMovieClip but I seem to be wording the code wrong because neither have worked at all, they even have cancelled out all the other code. Here is my code:[code].......................

View 3 Replies

ActionScript 3.0 :: Progress Bar For File Uploading?

Apr 18, 2011

i want to make a progress bar uploading, for a bitmap image that is in flash library ,using URLLoader and URLRequest.but ProgressEvent doesn't work true and it happends just when uploading is finished.i search and find that with apc_fetch in php we can find the total and current bytes uploaded in server.but the sample was in html and php and it needs a hidden type with an  id in http form.but i don't know how do it in flash.

a simple example in http and php is :
<form action="" method="post" enctype="multipart/form-data" name="uploadImage" id="uploadImage"><p><label for="image">Upload image:</label><input type="hidden"

[code]....

View 6 Replies

ActionScript 3.0 :: Create An Animation For A School Assignment?

May 14, 2011

I have to create an animation for a school assignment... Anyway I'm quite new to Adobe Flash and I'm using Action Script 3.0. I have created the first segment of my animation and I'm now onto the second part but when i go to change the stage background of my second segment it changes the background of my first segment. If you don't understand this just say so and I'll rewrite.
 
[Im new to these forums so if I have posted in the wrong section could Admin/Mod move it.

View 1 Replies

ActionScript 2.0 :: Creating An Interactive Photogallery For School?

Aug 28, 2009

For the last couple of weeks, i've been trying to develope an interactive yearbook for my school. Im using an external XML, and trying to push all the data in the xml to assigned arrays. Also im trying to use a for loop to create empty movie clips. This empty clips will serve as "pages" if the total number of students is greater than 25. Also, on these pages im trying to attachMovie to a specific x, and Y, as you'll see in my source code.

Other than that, i can not figure out where im going wrong.When i first try to publish it, it gives me an error saying that the path is undefined, and will not load ANYTHING. if i make a few changes, it just sits there blanky.

[Code]...

View 1 Replies

ActionScript 3.0 :: Button Error Only On School Network?

Jan 14, 2011

I'd created an interactive quizz that worked great [URL] Then I decided to spruce up the background and add a "title slide" [URL] Both ran great on my home computer, but the second version bugs out on the school's computers! Everything seems fine until you try to advance past frame 2 using the "next question" button, and although you see the button's over and down states, the slide never advances. I only changed one line of code between the two examples, the one declaring the slide number variable, and the logic must be correct as everything runs great on my machine at home! Both machines are running IE7 and have Flash player 10 installed. Do you know of any issues with network compatibility that I may have overlooked? As I don't have CS5 on the machines at school, I can't run the .fla files directly for debugging, so I don't know what to do to locate the error.

View 5 Replies

ActionScript 3.0 :: Stop File Download In Progress?

Nov 8, 2009

I've built an online magazine, that has several links to videos. One page has four of them. They all work great except under one specific circumstance. If the user quickly opens a video, and closes it, moving on the to next, and doing the same, the 3rd or 4th video may appear unresponsive. I've narrowed this down to being a bandwith issue. If I look at my activiyt in Safari, the FLV files continue to download even if the user closes my player.

Is there anyway to kill this download if the user closes a player?[code]...

View 1 Replies

Actionscript 3 :: Can't Get A Working Progress Bar For File Download?

Dec 8, 2011

I'm currently enrolled in an ActionScript course, and cannot seem to get my progress bar to work correctly. We were tasked with creating a simple image loader application, which would access externally hosted images (through use of a PHP proxy script), and then spit the image onto the user's screen (with a progress event and progress bar to track the image's download progress).

However, when I run it, I get these mysterious black graphical glitches everywhere, as well as a non-functioning progress bar. In some browsers I get the following error: "ArgumentError: Error #2109: Frame label NaN not found in scene NaN. at flash.display.MovieClip/gotoAndStop() at Document/imageLoadProgress().

Here is my code - I cant for the life of me figure out what is wrong. I figure it has something to do with the imageLoadProgress() function, or my progress bar (which is just a simple 100-frame movie clip with a motion tween and a "stop()" command at the beginning).

[Code]...

View 1 Replies

ActionScript 3.0 :: AIR How To Catch Progress Of File Copy

May 29, 2011

I'm making application with ability to copy system files and I need to show copying progress. Can anyone show some examples,I'm trying to use FileStream class, but I seem to lack experience.

View 2 Replies

ActionScript 3.0 :: Play A Sound File And Show The Progress Of The Sound File Being Played

Mar 16, 2009

I have to play a sound file and show the progress of the sound file being played. I am using import flash.media.Sound; import flash.media.SoundChannel; But the PROGRESS event gives theprogress of loading of file. I want to know of much of the song has been played and how much more is left.

View 3 Replies

Flash :: Desperate Search For A Developer For School Interview?

Oct 26, 2010

I'm in desperate search for a professional Flash Developer who wouldn't mind taking a few moments to participate in an interview about a past or recent Flash Project he/she has worked on. Unfortunately for me, I have had 2 people commit to this, and back out. The first completely ignored all messages and inquiries after I sent the information to her. After having no choice but to search for another person, I found another that was eager to help. Two days after I sent him the related material, I received a message stating he wasn't aware that it was a Flash project, and that they don't do any Flash in house, so as of last night, my second lead has turned into a dead end. I am now on my last ditch effort to find someone that would be willing to share their experience with me, so I can complete my assignment on time, which - by the way - is due Friday, October 29th.

[Code]...

View 1 Replies

JQuery :: Ajax File Uploader That Display Progress

May 13, 2010

Im looking for a jquery or ajax file uploader, Im currently using the FancyUploader which worked great until Flash brought out their update making all flash progress bars absolete, now whenever I try to upload large files... it will fill the progress bar to 100% in a matter of seconds even though the actual upload finished minutes after. So im now looking for a new uploading script that DOESNT require flash but can still display the progress.

View 4 Replies

Actionscript 3 :: Flash - Monitoring File Upload Progress?

May 28, 2010

I'm trying to track the progress of a file upload in AS3, and I'm getting strange behavior. When I select a file and upload it, the progress is instantaneously 100% even if the file is 10 or more megabytes, but it's not finished. The onComplete event is fired about 30 second to a few minutes later (depending on file size) when the file has really finished uploading. I've tested this locally and on the server, the behaviour is the same. Has anyone else experienced this? Very frustrating ...

Otherwise, the file is uploading fine. The code is simple:

myFileReference.addEventListener(ProgressEvent.PROGRESS, onUploadProgress);
function onUploadProgress(e:ProgressEvent) {
var pctDone:Number = (e.bytesLoaded / e.bytesTotal) * 100;
trace(pctDone);
}

View 4 Replies

Flash :: Preloader - Show The Download Progress Of A File?

Jun 1, 2010

I know how to setup a preloader and I have that working. But when I debug the flash application and simulate a download, it has a blank background until a few seconds have passed. I know it is "downloading" the swf file and I'm wondering if I can show a progress bar for that, or do I need to have the swf file as small as possible and pre load everything needed and have all assets as a separate file I fetch? I found something with ProgressEvent.PROGRESS but this only loads after the flash file is finished downloading.

View 1 Replies

Flex :: User GetRepeaterItem To Set The Progress Of A Progress Bar?

Mar 2, 2011

I have a progress bar inside a repeater and therefore I will need to use getRepeaterItem to set it's progress as suggested in this question.

How can I do that such that the value of progress may be taken from repMonitor.currentItem.threatLevel?

<mx:Accordion id="monAccordian" includeIn="Monitoring" x="10" y="10" width="554" height="242" change="monAccordianChange()" >
<mx:Repeater id="repMonitor" dataProvider="{monitoringArray}">

[Code]....

View 1 Replies







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