[Xerte] Re: Media file size

Pat Lockley patrick.lockley at googlemail.com
Thu Nov 29 11:20:24 GMT 2012


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> 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);****
>
>            };****
>
> ** **
>
>            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);****
>
>                 ****
>
>                 button.files = file.name;****
>
>                 button.fileUploaded(button);****
>
>                 ****
>
>                 this.progWin.deletePopUp();                ****
>
>            };****
>
>            ****
>
>            listener.onHTTPError = function(file:FileReference):Void  {****
>
>                 trace("onHTTPError: "+file.name);****
>
>            };****
>
>            ****
>
>            listener.onIOError = function(file:FileReference):Void  {****
>
>                 trace("onIOError: "+file.name);****
>
>            };****
>
> ** **
>
>            listener.onSecurityError = function(file:FileReference,
> errorString:String):Void  {****
>
>                 trace("onSecurityError: "+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] *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> 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] *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> wrote:****
>
> Yes, if that’s easy to do****
>
>  ****
>
> *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 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>
> 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] *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
> fax: +386 4 237 42 99
> e-mail: brane.smitek at fov.uni-mb.si ****
>
>  ****
>
>
>
>
> ****
>
> ** **
>
>  ****
>
> _______________________________________________****
>
> Xerte mailing list****
>
> 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
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte****
>
>  ****
>
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte****
>
>  ****
>
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte****
>
> ** **
>
> _______________________________________________
> Xerte mailing list
> 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/20121129/957bb91b/attachment-0001.html>


More information about the Xerte mailing list