Displaying 20 results from an estimated 40000 matches similar to: "image content-type question"
2010 Aug 18
0
paper clip plugin validation fails
hallo friends i developpeda photo uploader using paper clip plugin
its working quite well , but one problem is its able to upload all
kinds of file. see i want only png,gif,jpeg and should show error
message if validation fails.here if i applied validations in the model
the result is errors like this
ArgumentError (too few arguments):
app/controllers/images_controller.rb:63:in
2001 Jul 02
0
AW: Image compression thread
PNG...
- is free to use, no patents, open source
- is lossless, with compression superior to GIF (using zlib)
- supports palette and direct color
- supports b/w from 1 to 16 bit/p
- supports direct color from 24 to 48 bits/p
- supports palette color with 256 entries
- supports alpha blending with 8 and 16 bits/p
- supports palette alpha
- supports (compressed) tags, gamma, rendering intent,
2006 Feb 19
2
Missing text/html content in production (but not development)
Hi, everyone. I''m getting a production server ready for a site I''m
working on, and I''ve been a bit stumped by a difference between the
development server (running under Webrick) and the production server
(running under lighttpd).
Here''s the scenario: I''m working on a variation of an e-commerce
system. When someone finalizes an order with our
2009 Jan 24
0
attachment_fu and Internet Explorer
Hi Guys / Gals,
I''m stumped on a attachment_fu & IE issues that I hope someone here can
help with.
I''ve got attachment_fu working nicely with firefox, safari, but when I
use the same form from IE, I get the following complain.
undefined method `content_type'' for "C:\\Documents and
Settings\\Tester\\Desktop\\logo.gif":String
I''ve made sure that
2006 May 04
5
How to upload only jpeg & gif & png images into public/images using rubyonrails
Hello iam new to rubyonrails. Please any one help me out in "How to upload
only jpeg & gif & png images into public/images using rubyonrails"
Thanks in Advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060504/33a17ad2/attachment.html
2006 Jun 29
6
adding a before_filter to static content
Hi,
I have a Rails site that uses a before_filter in the application
controller that does some authentication and authorization work.
I also have a bunch of HTML in folders in the application''s public directory.
Before a user can view anything in the public directory, I''d like to
authenticate them. How could I do that?
I''m using mongrel, if it matters.
Thanks,
Joe
2011 Nov 29
2
image with Content-Type: text/html;
i have images such as this
http://www.cairo360.com/resource.servlet?path=event/6178/event_standard_6178_20112111_542213373.jpeg
its Content-Type: text/html;
"carrierwave" dosent recognize it as image
is there is any way to fix that ?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2002 Mar 11
2
gif, jpeg and png image files reader
Hi all,
Although R seems to have jpeg() and png() functions that converts data into
jpeg and png formated files, it
doesn't have functions the other way around.
Does one of R contributed packages have gif, jpeg and png image readers? I
did help.search() but no luck
Regards,
Jonathan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2007 May 30
0
Headers munged into RAW_POST_DATA
Hi,
we''re seeing a really weird problem in our production environment.
"Connection: Keep-Alive\r\n" is being pre-pended to the RAW_POST_DATA,
which makes requests error out. This bug is seen infrequently and
*seems* to be browser-related, although I can''t reproduce it using the
browser reported in HTTP_USER_AGENT.
Set up is a apache 2.2 -> hardware load balancer
2007 May 29
1
Headers munged into RAW_POST_DATA
Hi,
we''re seeing a really weird problem in our production environment.
"Connection: Keep-Alive\r\n" is being pre-pended to the
RAW_POST_DATA, which makes requests error out. This bug is seen
infrequently and *seems* to be browser-related, although I can''t
reproduce it using the browser reported in HTTP_USER_AGENT.
Set up is a hardware load balancer (NetScaler)
2007 Feb 10
0
email attachment is not sending properly
hi friends,
i m trying to send attachment with my mail. its an image file(.jpeg).
but when i check my inbox it shows me image file as binary contents in
tha mail itself. its not showing me an attachment.
please help me.
code in my model is:
class MyMailer < ActionMailer::Base
def sent(msg)
@subject = "Abc here...!"
@recipients = "xx-GVlOpdXsZis@public.gmane.org"
2009 Jun 15
1
display SVG, PNG, GIF, JPEG, TIFF, PPM in new plot frame
Dear R-help
I want to display an image file in a new plot frame.
SVG is my preferred format, but I can also consider
PNG, GIF, JPEG, TIFF, and PPM (from ImageMagick).
By way of background (although not material to this
posting), the image file is generated by a call to
'dot' (part of the 'Graphviz' suite) after the required
.dot file has been produced using hand-crafted R code.
2006 Apr 13
2
Content-type on render :file
Hi all,
I''ve just been trying out the dirt-simple rcss scheme posted here:
http://blog.hasmanythrough.com/articles/2006/03/23/dirt-simple-rcss-templates
It looks like the content-type declaration on the line:
render :file => file_name, :content_type => ''text/css''
isn''t getting honoured. I had to add a separate:
2008 Sep 29
1
has_one :through with :source. How to alias association?
Hi to everyone,
I have the following models:
class Attachment < ActiveRecord::Base
has_attachment :content_type => [:image, ''application/pdf''],
:max_size => 3.megabytes,
:path_prefix => ''../private/attachments'',
:storage => :file_system,
:processor => :rmagick,
2011 Aug 12
16
Rack content-length Rack::Lint::LintErrors errors with unicorn
Has anyone seen anything like this before? I can get it to happen all
the time if I issue a HEAD request, but it only happens very
intermittently on GET requests.
I''m using Ruby 1.9.2p180.
Any ideas on where to start debugging?
204.93.223.151, 10.195.114.81 - - [11/Aug/2011 21:03:50] "GET /
HTTP/1.0" 200 37902 0.5316
app error: Content-Length header was 37902, but should be
2004 Aug 24
1
error when unsubscribe (PR#7198)
Full_Name: Huan Huang
Version: 1.9.1
OS: Win NT
Submission from: (NULL) (155.140.122.227)
Traceback:
Traceback (most recent call last):
File "/scratch/local/app/mailman-sfs/2.1.5/scripts/driver", line 87, in
run_main
main()
File "/scratch/local/app/mailman-sfs/2.1.5/Mailman/Cgi/options.py", line 91,
in main
language = cgidata.getvalue('language')
File
2001 Jun 29
3
Pessimism
Peter Schuller wrote :
> > I use it a lot, but I still get people mailing me
> > .gifs and even worse .jpgs (of things like text!!!)
> > That's okay let them.
>
> JPEG worse than GIF? What are you on? :) At least JPEG supports more than
> 256 colors and you don't need to pay $100000 (or whatever) to write an
> encoder...
Uh, should I send you a GIF and
2004 Feb 06
0
Bug (PR#6550)
Full_Name: Huan Huang
Version: 1.8.1
OS: WIN NT
Submission from: (NULL) (155.140.122.227)
Bug in Mailman version 2.1.4
We're sorry, we hit a bug!
If you would like to help us identify the problem, please email a copy of this
page to the webmaster for this site with a description of what happened. Thanks!
Traceback:
Traceback (most recent call last):
File
2004 Jan 06
0
bug report (PR#6394)
Full_Name: Huan Huang
Version:
OS:
Submission from: (NULL) (155.140.122.227)
Bug in Mailman version 2.1.4
We're sorry, we hit a bug!
If you would like to help us identify the problem, please email a copy of this
page to the webmaster for this site with a description of what happened. Thanks!
Traceback:
Traceback (most recent call last):
File
2006 Feb 28
1
ArgumentError (string contains null byte) -- file upload problem
Hi,
Controller code:
if params[:main_image]
image = Image.new
image.blob = params[:main_image].read
@product.main_image.destroy if @product.main_image
@product.main_image = image
end
When I try to display the image using send_data, I get the following error:
ArgumentError (string contains null byte):