[Xerte] Re: Media file size

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri Nov 30 10:07:50 GMT 2012


It’s not send and load.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
Sent: 29 November 2012 11:48
To: Xerte discussion list
Subject: [Xerte] Re: Media file size

i'm pretty sure it used to be (it did exist at one point) on the sendandload data object?

On Thu, Nov 29, 2012 at 11:29 AM, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
No, file.upload returns false if

‘Boolean - A value of false in any of the following situations:
·         FileReference.browse() has not yet been successfully called on this object, or if FileReferenceList.browse() has not yet been successfully called with this object in its filelist array.
It must be in an event handler, because it’s not synchronous. There are two possiblitities onHTTPError or onIOError:
onIOError
Invoked in any of the following situations:
·         The upload fails because of an input/output error while Flash Player is reading, writing, or transmitting the file.
·         The upload fails because the SWF file tries to upload a file to a server that requires authentication, such as a user name and password. During upload, Flash Player does not provide a means for users to enter passwords.
·         The upload fails because the url parameter contains an invalid protocol. FileReference.upload() must use HTTP or HTTPS.
onHTTPError

•         Invoked when an upload fails because of an HTTP error.





From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat Lockley
Sent: 29 November 2012 11:21

To: Xerte discussion list
Subject: [Xerte] Re: Media file size

file.upload not file_upload

On Thu, Nov 29, 2012 at 11:20 AM, Pat Lockley <patrick.lockley at googlemail.com<mailto:patrick.lockley at googlemail.com>> wrote:
No, it isn't a HTTP error (the page will work)

I think file_upload can be true or false if the PHP returned value is true or false?

Sure the flash help stuff will say?


On Thu, Nov 29, 2012 at 10:54 AM, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
This is the code, so alert in onHTTPError?

                                listener.onSelect = function(file:FileReference):Void {

                //create a modal window
                this.progWin = PopUpManager.createPopUp(wizard, mx.containers.Window, true, {_x:325, _y:200, closeButton:false, title:'File Upload'});
                this.progWin.createClassObject(ProgressBar, 'prgBar', 20, {_x:25, _y:40, mode:'manual', minimum:0, maximum:100});
                this.progWin.createClassObject(Button, 'btnCancel', 21, {_x:50, _y: 80, label:'Cancel'});

                this.click = function(evt){
                     this.fileRef.cancel();
                     this.progWin.deletePopUp();
                }
                this.progWin.btnCancel.addEventListener('click', this);
                this.progWin.setSize(200,130);

                url = _root.upload_path + _root.rlovariable;
                file.upload(url);

           };

           listener.onCancel = function(file:FileReference):Void  {
                trace("onCancel");
           };

           listener.onOpen = function(file:FileReference):Void  {
                trace("onOpen: "+file.name<http://file.name>);
           };

           listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void  {
                trace("onProgress with bytesLoaded: "+bytesLoaded+" bytesTotal: "+bytesTotal);
                this.progWin.prgBar.setProgress(bytesLoaded, bytesTotal);
           };

           listener.onComplete = function(file:FileReference):Void  {
                trace("onComplete: "+file.name<http://file.name>);

                button.files = file.name<http://file.name>;
                button.fileUploaded(button);

                this.progWin.deletePopUp();
           };

           listener.onHTTPError = function(file:FileReference):Void  {
                trace("onHTTPError: "+file.name<http://file.name>);
           };

           listener.onIOError = function(file:FileReference):Void  {
                trace("onIOError: "+file.name<http://file.name>);
           };

           listener.onSecurityError = function(file:FileReference, errorString:String):Void  {
                trace("onSecurityError: "+file.name<http://file.name>+" errorString: "+errorString);
           };

           var fileRef:FileReference = new flash.net.FileReference();
           listener.fileRef = fileRef;
           fileRef.addListener(listener);
           fileRef.browse(allTypes);

From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat Lockley
Sent: 29 November 2012 10:36
To: Xerte discussion list
Subject: [Xerte] Re: Media file size

Somewhere in wizard.fla is the call to file_upload.php or maybe upload.php

It reads in a sendandload true value if it works, if it fails it does nothing (i think).

So just put an alert (VARIABLE NAME) if it fails

call the variable uploadError ?

On Thu, Nov 29, 2012 at 10:31 AM, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
How does the flash side of things work (sorry bit short on time today)

From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat Lockley
Sent: 29 November 2012 10:15

To: Xerte discussion list
Subject: [Xerte] Re: Media file size

If you let me know the flash variable name for the error, I'll add stuff to the file upload script for 1.9

On Thu, Nov 29, 2012 at 9:57 AM, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
Yes, if that’s easy to do

From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat Lockley
Sent: 29 November 2012 09:46
To: Xerte discussion list
Subject: [Xerte] Re: Media file size

Is it worth adding an error handler into the code for this?
It comes up a bit

On Thu, Nov 29, 2012 at 7:49 AM, Brane Šmitek <brane.smitek at fov.uni-mb.si<mailto:brane.smitek at fov.uni-mb.si>> wrote:
Thank you.

Pat already suggested me to lokk php.ini and I changed values.
Now I can import larger files.


From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Tom Reijnders
Sent: Thursday, November 29, 2012 8:44 AM
To: Xerte discussion list
Subject: [Xerte] Re: Media file size

The maximum file size depends is determined by your php settings.
in php.ini you can change the settings:

post_max_size
upload_max_filesize

Tom
Op 28-11-2012 10:42, Brane Šmitek schreef:
What is the maximum media file size using in media pages?
In which file can I change the media file size parameter?

Kind regards
Branislav SMITEK Ph.D.
University of Maribor
FACULTY OF ORGANIZATIONAL SCIENCES
Kidriceva cesta 55/a
SI4000 KRANJ
SLOVENIA
tel: +386 4 237 42 63<tel:%2B386%204%20237%2042%2063>
fax: +386 4 237 42 99<tel:%2B386%204%20237%2042%2099>
e-mail: brane.smitek at fov.uni-mb.si<mailto:brane.smitek at fov.uni-mb.si>











_______________________________________________



Xerte mailing list

Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>

http://lists.nottingham.ac.uk/mailman/listinfo/xerte


--









--





Tom Reijnders



TOR Informatica

Chopinlaan 27

5242HM Rosmalen

Tel: 073 5226191

Fax: 073 5226196





_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte



_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20121130/247eb2e0/attachment-0001.html>


More information about the Xerte mailing list