similar to: send_file and ZIP files

Displaying 20 results from an estimated 1000 matches similar to: "send_file and ZIP files"

2010 Mar 03
5
Applications running on the Firewall (MultiISP)
Hello, it seems I am hit by http://shorewall.net/MultiISP.html#Local : "Experience has shown that in some cases, problems occur with applications running on the firewall itself. This is especially true when you have specified routefilter on your external interfaces in /etc/shorewall/interfaces (see above). When this happens, it is suggested that you have the application use specific local IP
2007 Mar 12
1
Basic authentication with Apache and Mongrel
I recently moved an app. from lighttpd + fastcgi to apache 2.2 + mod_proxy_balancer + Mongrel. On lighttpd, I was using basic authentication with a configuration like this: auth.backend = "htpasswd" auth.backend.htpasswd.userfile = "/path/to/htpasswd" auth.require = ("/" => ("method" => "basic", "realm" => "My
2007 Mar 13
1
Fwd: Re: Basic authentication with Apache and Mongrel
There is a big difference if you are not running a pure rails site. I am doing auth apache-side because I serve static content, perl scripts via cgi and feed the mongrel pack from Apache. The REMOTE_USER variable value can be passed to rails using a technique described deep down in one of the informative pieces on the Mongrel website. Bill On Mon, 12 Mar 2007 17:54:07 -0700, Matte Edens wrote:
2008 Dec 05
3
Problem loading Matrix package in Ubuntu R 2.8.0
Dear List: I'm having the same problem that was reported recently. The latest version of R cannot load the Matrix package, even though it is installed and readable. I've read the archive files for this list and tried the suggested solutions (e.g., removing/uninstalling the Matrix package and reinstalling it). Nothing has worked so far. Does anybody have advice of what I could try next?
2008 Oct 22
12
Hotplug issues on USB removable media.
Hi, As a part of the next stages of the time-slider project we are looking into doing actual backups onto removable media devices such as USB media. The goal is to be able to view snapshots stored on the media and merge these into the list of viewable snapshots in nautilus giving the user a broader selection of restore points. In an ideal world we would like to detect the insertion of the
2002 Aug 30
2
syntax for push to remote rsync server
Hi, I have set up two servers as rsync servers with ssh, they sync agianst each other. I can pull data down from either remote node when logged into one of them, using a module defined on both servers. However I don't seem to be able to push from the localhost to the remote rsync server. I think I'm using the incorrect syntax. If someone could highlight where I'm going wrong it would
2006 Feb 09
2
Dell PowerEdge 1800 and TE410P
Hi, I've been asked to find a server that is capable of running the Digium TE410P card. We usually get Dell PE servers and after a quick look I think the PE 1800 has the required slot: Six Total: 2 PCI Express (x8 lane & x4 lane); 2 x 64-bit/100MHz PCI-X; 1 x 32-bit/33MHz PCI (5v) and 1 x 64-bit/66MHz PCI Has anyone got this hardware, does it work with the card and asterisk? Thanks,
2007 Apr 18
1
Bugs on CentOS 5.0 x86
Well, here is my list of bugs, in case they were not reported before, and in case these are not Upstream problems. Any suggestions about fixing them would be welcome. 1) Under GNOME (I have KDE installed too): I am logging in as a user, and have kget and korgac to at start up programs, under Sessions and often their icons show up on the left (sometimes one above the other), instead of
2010 Nov 05
2
Samba Versions
We are using Samba Version 2.2.5 on a HP D Class Server running HP-UX 10.20. Anyway my question is does anybody happen to know what is the latest version of Samba that will operate with HP-UX 10.20? Regards Niall BancTec Limited. Registered Office: Jarman House, Mathisen Way, Poyle Road, Colnbrook, Berkshire SL3 0HF. Incorporated in England & Wales : 1283512. VAT : GB 228 4783 38.
2006 May 14
3
send_file and locking files after download?
Hello, I''m working on a download service which grants users a one-time-download access to files. The idea is to write an entry to a database table after a successful download that "locks" the download link for the user. After doing some quick tests with send_file I noticed that send_file does not block until the user has downloaded the full file, but proceeds with the
2005 Dec 13
3
send_file doesn't work with Apache?...
Hi, I''ve been using send_file in my Rails application with WEBrick happily to send files of various sizes and kinds. The same code fails to send anything but a 500 error when run under Apache, and a log file message "warning: syswrite for buffered IO". Looking back through the mailing list archives I see that there have been send_file bugs in the past. Can some knowledgeable
2007 Feb 22
0
error with send_file.. please help me...
Ben wrote: > API is your friend. > http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000091 > send_file I put this code block in files_controller.rb def send_file(path, options = {}) #:doc: raise MissingFile, "Cannot read file #{path}" unless File.file?(path) and File.readable?(path) options[:length] ||= File.size(path)
2007 Aug 27
1
Send_file() method for downloading any file
HI, I need to know how to download any file using send_file() method.The code I have shown below is for a specific file........how ever I need it for any file. THE CODE ........ def download_files send_file(''D:/hr/Handbook.doc'', :filename => params[:filename] , :type => ''application/octet-stream'',
2012 May 31
2
send_data/send_file does not open a save as dialog box
Hello, We are using JRuby 1.5.1/ruby 1.8.7/Rails 2.3.8 with a GWT front end. I''m having an issue when attempting to send a server side .csv file to the user using rails send_file. my code is: send_file(path_to_file, type=>''text/csv'') While this is returning fine with an http status of 200, the client side save as dialog is never opening for the user to receive
2006 Aug 08
2
send_file problem
I''m attempting to use send_file to send an image file from public/images. The file is world readable. I keep getting the following error: A ActionController::MissingFile occurred in account#current_logo: Cannot read file public/images/logo.png /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/streaming.rb:55:in `send_file'' I''ve tried supplying
2007 Aug 24
1
How to download any file using send_file() method
HI, I am directory listing and in that listing I have certain files and sub directories, now when I click on the files it should download that particular file but I am not able to accomplish it, and I have got to use send_file() method. In the send file Code shown below I have made use of the address of one of the files directly so when I click the link of any file it downloads it. THE CODE
2006 Jul 22
0
form_remote_tag and send_file
All, I have an existing form that calls an action which in turn creates a PDF and sends it to the browser using send_file. I want to change this form to use form_remote_tag so that I can set a progress bar and once the PDF is finished, the progress bar hides and the PDF opens. The send_file data is being sent to the browser, but not displayed anywhere. When I use a regular form post, it
2006 Apr 03
0
Making output_compression work with send_file
While working with the newly fixed output compression plugin, one of the devs in my team discovered that it breaks with send_file(). So if you are using send_file() in your application you must get the fixed file I''ve put at: http://devblog.famundo.com/output_compression.rb. The change is actually in checking for the Content-Disposition header added by send_file(). See the full writeup
2006 Mar 29
1
send_file is behaving strange
Hi all, I am using send_file("/path/to/my/file")to send a file from the server to a client. The file is not empty but when displayed on the client, it is totally blank. In windows system, it''s working properly, the problem is only with a linux server -- Posted via http://www.ruby-forum.com/.
2009 Mar 26
2
send_file using AJAX
I have a AJAX based form and when I use send_file there is no pop-up that appears to prompt user to download file... how do I fix this? Regards, Sudhindra -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email