[symfony-users] Re: How to manage big uploads

2009-11-02 Thread Eno

On Wed, 28 Oct 2009, Gorka wrote:

 How do you manage a 200Mb file upload using http and php only? And
 more importan, is it really the best way to work with such big
 uploads?

As Gareth already pointed out, one strategy would be to alter the max 
upload and execution limits so the upload happens as a normal POST.

If you're willing to use Flash, there are components that will upload and 
show progress too.



-- 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-11-01 Thread andrew cs
depends of the limitations of your apache, you could modificate the .conf
file, i solve this problem whit simple formulary, you colud see my project
in http://code.google.com/p/ge-folder/ in my folder module.

bytes.





-- 
solo mi almohada conoce el peso de mis sueños.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-30 Thread Gareth McCumskey
The best practice is really restricted by your project requirements. If
you can use flash components to do the job, then that is probably best. If
your limited to PHP then ini_set is something you need to consider as large
files that take a long time to load will cause PHP's script execution time
limits and memory limits to kick in, thats why I pointed it out.

On Thu, Oct 29, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com wrote:



 Thanks, Gareth and Deepak, but Im not searching for php.ini
 configurarion and there is no code i can show. Im asking for the best
 practice when it comes to uploading big files such as video files.

 Thanks, anyway :)

 On Oct 29, 8:02 am, Gareth McCumskey gmccums...@gmail.com wrote:
  http://php.net/manual/en/function.ini-set.php
 
  On Thu, Oct 29, 2009 at 8:35 AM, DEEPAK BHATIA toreachdee...@gmail.com
 wrote:
 
 
 
 
 
   Please send me the code for same if possible. Thanks
 
   On Thu, Oct 29, 2009 at 10:47 AM, Gareth McCumskey 
 gmccums...@gmail.comwrote:
 
   I think what he means is PHP's built in script execution time
 limitations
   and so on.
 
   One thing that you can do is dynamically alter the max execution time
 and
   memory limits during the upload process based on the file size.
 
   On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA 
 toreachdee...@gmail.comwrote:
 
   Every web application has a limit on upload else your server could be
   crashed for no space
 
   On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com
 wrote:
 
   When it comes to video or audio files, uploading via http forms does
   not seem to be the best approach: timeouts, size limits, etc...
   usually get on the way.
 
   How would you manage big (+20MB) or batch uploads? I guess the best
   solution would be a client-side code either in java, flash o
   silverlight using FTP to upload the files and server-code to process
   the uploaded files if needed, but I'd like to know how people are
   solving this issue.
 
   --
   Gareth McCumskey
  http://garethmccumskey.blogspot.com
   twitter: @garethmcc
 
  --
  Gareth McCumskeyhttp://garethmccumskey.blogspot.com
  twitter: @garethmcc
 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-29 Thread DEEPAK BHATIA
Please send me the code for same if possible. Thanks

On Thu, Oct 29, 2009 at 10:47 AM, Gareth McCumskey gmccums...@gmail.comwrote:

 I think what he means is PHP's built in script execution time limitations
 and so on.

 One thing that you can do is dynamically alter the max execution time and
 memory limits during the upload process based on the file size.


 On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote:

 Every web application has a limit on upload else your server could be
 crashed for no space


 On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com wrote:


 When it comes to video or audio files, uploading via http forms does
 not seem to be the best approach: timeouts, size limits, etc...
 usually get on the way.

 How would you manage big (+20MB) or batch uploads? I guess the best
 solution would be a client-side code either in java, flash o
 silverlight using FTP to upload the files and server-code to process
 the uploaded files if needed, but I'd like to know how people are
 solving this issue.







 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-29 Thread Gorka


Think of a website with a video gallery, managed by the site
administrator who is a regular user with no particular interest on
learning what FTP is and how to use it. Or, simply, because you want
to give him a web integrated management with no external tools.

Think of a dedicated server with no hard drive limits whatsoever,
unlimited infinite disk space.

Now imagine the admin wants to upload a 200MB video that will be
processed by the application to grab a preview picture, get
duration, ... and publish it as flash video on the latest vídeos
section of the web.

How do you manage a 200Mb file upload using http and php only? And
more importan, is it really the best way to work with such big
uploads?

On Oct 29, 6:17 am, Gareth McCumskey gmccums...@gmail.com wrote:
 I think what he means is PHP's built in script execution time limitations
 and so on.

 One thing that you can do is dynamically alter the max execution time and
 memory limits during the upload process based on the file size.

 On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote:





  Every web application has a limit on upload else your server could be
  crashed for no space

  On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com wrote:

  When it comes to video or audio files, uploading via http forms does
  not seem to be the best approach: timeouts, size limits, etc...
  usually get on the way.

  How would you manage big (+20MB) or batch uploads? I guess the best
  solution would be a client-side code either in java, flash o
  silverlight using FTP to upload the files and server-code to process
  the uploaded files if needed, but I'd like to know how people are
  solving this issue.

 --
 Gareth McCumskeyhttp://garethmccumskey.blogspot.com
 twitter: @garethmcc
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-29 Thread Gareth McCumskey
http://php.net/manual/en/function.ini-set.php

On Thu, Oct 29, 2009 at 8:35 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote:

 Please send me the code for same if possible. Thanks

 On Thu, Oct 29, 2009 at 10:47 AM, Gareth McCumskey 
 gmccums...@gmail.comwrote:

 I think what he means is PHP's built in script execution time limitations
 and so on.

 One thing that you can do is dynamically alter the max execution time and
 memory limits during the upload process based on the file size.


 On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA 
 toreachdee...@gmail.comwrote:

 Every web application has a limit on upload else your server could be
 crashed for no space


 On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com wrote:


 When it comes to video or audio files, uploading via http forms does
 not seem to be the best approach: timeouts, size limits, etc...
 usually get on the way.

 How would you manage big (+20MB) or batch uploads? I guess the best
 solution would be a client-side code either in java, flash o
 silverlight using FTP to upload the files and server-code to process
 the uploaded files if needed, but I'd like to know how people are
 solving this issue.







 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc

 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-29 Thread Gorka


Thanks, Gareth and Deepak, but Im not searching for php.ini
configurarion and there is no code i can show. Im asking for the best
practice when it comes to uploading big files such as video files.

Thanks, anyway :)

On Oct 29, 8:02 am, Gareth McCumskey gmccums...@gmail.com wrote:
 http://php.net/manual/en/function.ini-set.php

 On Thu, Oct 29, 2009 at 8:35 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote:





  Please send me the code for same if possible. Thanks

  On Thu, Oct 29, 2009 at 10:47 AM, Gareth McCumskey 
  gmccums...@gmail.comwrote:

  I think what he means is PHP's built in script execution time limitations
  and so on.

  One thing that you can do is dynamically alter the max execution time and
  memory limits during the upload process based on the file size.

  On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA 
  toreachdee...@gmail.comwrote:

  Every web application has a limit on upload else your server could be
  crashed for no space

  On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com wrote:

  When it comes to video or audio files, uploading via http forms does
  not seem to be the best approach: timeouts, size limits, etc...
  usually get on the way.

  How would you manage big (+20MB) or batch uploads? I guess the best
  solution would be a client-side code either in java, flash o
  silverlight using FTP to upload the files and server-code to process
  the uploaded files if needed, but I'd like to know how people are
  solving this issue.

  --
  Gareth McCumskey
 http://garethmccumskey.blogspot.com
  twitter: @garethmcc

 --
 Gareth McCumskeyhttp://garethmccumskey.blogspot.com
 twitter: @garethmcc
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-29 Thread Miloslav Kmeť

I do it exactly like you described.  I have no code to share, but you can 
really look in the php.ini settings especially on the settings
upload_max_filesize
post_max_size

There is no magic. Metadata from the uploaded video i am retrieving with 
ffmpeg-php and I never need to increase the max_execution_time (because I 
never process the video in a web request).

If you would like to use some kind of progressbar for user, you need to find 
your uploader (uploadify, swfupload) or you can do it yourself for example 
with APC. There are many example on the internet.

~
Miloslav Kmeť

Dňa Št 29. október 2009 Gorka napísal:
 Thanks, Gareth and Deepak, but Im not searching for php.ini
 configurarion and there is no code i can show. Im asking for the best
 practice when it comes to uploading big files such as video files.

 Thanks, anyway :)

 On Oct 29, 8:02 am, Gareth McCumskey gmccums...@gmail.com wrote:
  http://php.net/manual/en/function.ini-set.php
 
  On Thu, Oct 29, 2009 at 8:35 AM, DEEPAK BHATIA 
toreachdee...@gmail.comwrote:
   Please send me the code for same if possible. Thanks
  
   On Thu, Oct 29, 2009 at 10:47 AM, Gareth McCumskey 
gmccums...@gmail.comwrote:
   I think what he means is PHP's built in script execution time
   limitations and so on.
  
   One thing that you can do is dynamically alter the max execution time
   and memory limits during the upload process based on the file size.
  
   On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA 
toreachdee...@gmail.comwrote:
   Every web application has a limit on upload else your server could be
   crashed for no space
  
   On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com 
wrote:
   When it comes to video or audio files, uploading via http forms does
   not seem to be the best approach: timeouts, size limits, etc...
   usually get on the way.
  
   How would you manage big (+20MB) or batch uploads? I guess the best
   solution would be a client-side code either in java, flash o
   silverlight using FTP to upload the files and server-code to process
   the uploaded files if needed, but I'd like to know how people are
   solving this issue.
  
   --
   Gareth McCumskey
  http://garethmccumskey.blogspot.com
   twitter: @garethmcc
 
  --
  Gareth McCumskeyhttp://garethmccumskey.blogspot.com
  twitter: @garethmcc

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-28 Thread DEEPAK BHATIA
Every web application has a limit on upload else your server could be
crashed for no space

On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com wrote:


 When it comes to video or audio files, uploading via http forms does
 not seem to be the best approach: timeouts, size limits, etc...
 usually get on the way.

 How would you manage big (+20MB) or batch uploads? I guess the best
 solution would be a client-side code either in java, flash o
 silverlight using FTP to upload the files and server-code to process
 the uploaded files if needed, but I'd like to know how people are
 solving this issue.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-28 Thread Gareth McCumskey
I think what he means is PHP's built in script execution time limitations
and so on.

One thing that you can do is dynamically alter the max execution time and
memory limits during the upload process based on the file size.

On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote:

 Every web application has a limit on upload else your server could be
 crashed for no space


 On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com wrote:


 When it comes to video or audio files, uploading via http forms does
 not seem to be the best approach: timeouts, size limits, etc...
 usually get on the way.

 How would you manage big (+20MB) or batch uploads? I guess the best
 solution would be a client-side code either in java, flash o
 silverlight using FTP to upload the files and server-code to process
 the uploaded files if needed, but I'd like to know how people are
 solving this issue.



 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---