Displaying 20 results from an estimated 5000 matches similar to: "Question about file upload max size"
2007 Mar 16
0
cancel running request
Hi everybody,
I''m making a plugin to limit the maximum request size (for file
uploads). Instead of canceling the request after it''s completely
in (with the method ''process''). I would like to cancel it based
on the CONTENT_LENGTH in the method request_begins. Usability
thingie ;-)
how can i cancel the running request and send a response, instead
of waiting?
2007 Sep 16
0
upload_progress example
Since mrblog is now out of sync with trunk, I distilled out of it just the
minimum parts for having upload progress display on file uploads.
I also took the liberty of inverting the way the iframe was used: now the
iframe contains the progress display, rather than being the target of the
form post. This makes more sense to me, as you may wish to separate visually
the progress display anyway,
2007 May 14
7
Help a newb with 0.3.1
Hi, first off thanks Ezra for Merb - it''s certainly interesting and
I''m keen to have a play. However, I''m having difficulties in getting
started. I''ve followed the docs for setting up mrblog and everything
seems to be installed correctly, and merb appears to start fine:
$ merb
you must install the markaby gem to use .mab templates
you must install the
2007 Mar 24
0
max upload size!
As suggested in "max upload size?"
http://www.mail-archive.com/mongrel-users at rubyforge.org/msg02325.html
I created a plugin that disconnects (raises an error which
terminates the socket) if the specified content-length is higher
than 200 MB (by default).
I don''t know the behaviour if the specified content length is
different than the actual uploaded data or if no
2007 Mar 08
6
Transfer-encoding: gzip
Hello!
What is the simplest way to make merb respond to the client sending Accept-Encoding: gzip?
Just checking if it exists, otherwise I''ll implement it myself.
Regards,
Magnus
2007 Aug 09
0
File upload issue with Merb 0.3
Hello,
I have written a Java applet that uses Merb to process file uploads.
This works perfectly on Merb 0.1.0.
When I upgraded to 0.3.7, all seems to work well, but I then started to see
problems - when people uploaded certain files, the ruby process would spin
out and start using lots of CPU, never coming back to life. Other files
work just fine.
The problem is almost certainly in my Java
2008 Jan 03
1
Can''t get upload progress bar working
Hi,
Apologies if this has been asked and answered previously.
I just started looking at Merb today as I''d like to use it as an upload
server, especially the upload progress feature.
I''ve installed the latest Merb gem (0.4.2) and created a new application
to test out uploading. I took elements of the mr_blog application and
integrated them into it. I realise this
2007 Aug 07
1
Upload progress and drb
Hi,
Sorry if this is a stupid question!
I used to have a site running on Merb 0.1.0. When running as a cluster, it
would automatically start a drb process to co-ordinate the upload progress
monitoring.
Since uploading to 0.3.7 (a bit of a jump!), the drb process hasn''t started
automatically. I seem to start one if I run merb -s 32323 manually, but
when I do check on a file
2006 Dec 03
1
File Upload Unix Only?
I tried the upload feature in merb 0.0.7 using http://localhost:4000/files
I get the following:
Permission denied - D:/Temp/Merb.5172.0 or
E:/Dev/Ruby/merb-0.0.7/examples/sample_app/dist/public/files/foobar.jpg
- (Errno::EACCES) C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `rename''
C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `mv''
C:/Ruby/lib/ruby/1.8/fileutils.rb:1379:in
2006 Sep 19
2
Upload Size Limiting Handler
I have written a mongrel handler that monitors the content length of a given
url''s request and redirects them if they are over a certain limit. The idea
is to throttle the maximum size of an uploaded file.
Using the process method on HttpHandlerPlugin I am able to make this work
the only downside is that the whole file is still uploaded. I would much
prefer to inspect the http header
2008 Mar 02
1
(Noob) Image upload: rename file
Hi!
I''m building an app where the user can upload images. this works fine and
the uploaded file is copied from the temp directory to an
MerbRoot/uploads/id directory. my problem is that the filename is something
like Merb.5288.0. How can I rename it? my model is available at
pastie.<http://pastie.caboo.se/160143>
I''m sure this question is not too sophisticated (-;
regards
2006 Dec 18
1
Upload Progress (mup.js) typo
I was using the sample_app and found out that the progress bar wasn''t
changing color. It was updating the percentage but wasn''t updating the width
of the status bar style...
I found that the mup.js was missing and appended "px"
So here it is: my first ever Merb patch!
http://pastie.caboo.se/28450
cheers,
-rjs-
(the_mug)
Blog: http://www.rosamour.com
--------------
2008 Jan 16
3
Application generation
Hi All,
Is anyone seeing this?
$ merb merb_paste
/usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:69:in
`parse_args'': uninitialized constant Merb::RELEASE (NameError)
from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize''
from /usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:67:in
`new''
from
2007 Sep 21
1
RESTful route gives a 500 error when Content-Type is set
I have encountered a problem with a RESTful route, I have the simple route;
r.resources :people
With a corresponding controller, when I tried to access it using
ActiveResource I get a server error, I have tracked this down to a
problem where if the header ''Content-Type: application/xml'' is sent it
errors out:
> curl -H ''Accept: */*''
2008 Mar 10
0
Vancouver.rb Q&A with Brock Whitten on Rails, Getting Off Rails (Merb), PmpknPi (Blog in Merb) and More (Part I)
Hello,
I''ve published a Q&A in the Vancouver.rb series with Brock Whitten.
Questions include:
* How did you get started with Ruby on Rails? What makes Ruby on
Rails a great choice for developing web applications/sites?
* Can you tell us some challenges you''ve faced developing using
Ruby on Rails?
* Off the Rails - Can you tell us a little bit about Merb? How
2007 Mar 28
0
[recipe] How to get on Merb Edge
Hello,
My name is Olle, and I am new here. I''d like to add some detail to
Ez''s explanation in a previous email [1]. These are the steps I took
to get Merb running Merb Edge (is that what you call it?).
Start in the merb-root not in the dist-root.
# Create dist/framework, plus script/merb stub
rake merb:freeze
cd dist
rm -rf framework
# Replace dist/framework with trunk
2007 Dec 19
3
Trapping custom exceptions in merb 0.5.0
Hi,
I have the following setup:
class Fred < Application
class InvalidKey < Merb::ControllerExceptions::Unauthorized; end
def blee
raise InvalidKey unless key
end
end
I have added a view exception template in
views/exceptions/invalid_key.html.erb
but I am not seeing the exception page being rendered ?? The request
seems to correctly
go to
2007 Oct 24
1
Status of Merb on JRuby
I''ve submitted a few patches on Trac to help get Merb running under
JRuby [0][1][2][3][4]. It''d be cool if any of you committers could
find the time to look them over and apply/reject them. They''re mostly
tiny, so it shouldn''t be too onerous.
With all of these patches applied, there are still 3 spec failures.
One is in the spec ''a merb mailer
2007 Sep 11
0
Merb & Monit
greetings,
i have been trying to get merb and monit to play well. but monit
won''t restart merb. neither will monit stop merb if it is still
running but not responding.
below is the monit config for the merb app.
anyone know what i am doing wrong or have good strategies for using
monit and merb?
thank you - john weir
check process manwith-4000 with pidfile
2008 Mar 16
0
Merb Init Problems
Hi All,
I''ve come across the following problem with merb 0.5.3 (ruby 1.8.6 / Mac OS
X Leopard). Basically, when I type ''merb'' or ''merb -i'' from within the
app''s root, It starts, compiles the routes and then exits. Any ideas???
This is a brand spanking new merb app:
josh at JDS-MacBook:~/Projects/schmerb$ merb
Merb started with these