similar to: error with send_file.. please help me...

Displaying 20 results from an estimated 300 matches similar to: "error with send_file.. please help me..."

2005 Dec 20
0
2005 a send_file odyssey (or Rails and Apache don''t always play well)...
Hi, I''m developing a Rails application that (amongst other things) lets users download media files. These files range in size from a few kilobytes up to several gigabytes. All this development is taking place with Rails 1.0 on a Solaris host with Ruby 1.8.2 and Rails mode set to "development". I''m using the Rails send_file method to send each file with these
2007 Feb 23
1
How to make Rails send a file that is being written
I''m trying to build a simple proxy to Amazon S3 that would allow a client to request a url that gets mapped to a S3 Object by Rails and streamed back to the client. For S3 integration, I use the highly recommended gem AWS::S3 (http://amazon.rubyforge.org/), and to send a file, I simply use the send_file function. The concept works BUT the I can''t get the file to be sent as
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
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 Dec 17
2
Error in send_file
I''m trying to add a link to download a zip file. I created a controller method that makes the call to send_file: def getzip send_file ''file.zip'' end When I navigate to this link I get a MissingFile exception. The file definitely exists (and U triple-checked paths and spelling) and the permissions are 644. I tried moving it to the /public folder and updating the
2006 Mar 03
0
send_file bug
I had a problem with the send_file method. I saw that some of you had the same problem but with no real solution/explanation first problem the :stream options, and not ''streaming'' as I see in some doc or book. the second problem : when you set :stream to true, there''s a use of syswrite that should not be. I detailed this in response to a ticket opened by stuart
2007 Jan 08
1
delete a file from the server
Hi all, i want to create a vcs file. when i am creating the vcs file it is getting creatd in the server as well as in the local drive. But i dont want to the vcs file to be saved in the serve. when i am trying to delete the file from the server it is throwing the error,"Cannot start Microsoft Outlook.Cannot import vCalendar file". here is the code that i am using. def vcs f =
2011 Apr 15
4
[Bug 8090] New: full_fname out of memory error on missing file SunOS 5.8
https://bugzilla.samba.org/show_bug.cgi?id=8090 Summary: full_fname out of memory error on missing file SunOS 5.8 Product: rsync Version: 3.0.7 Platform: Sparc OS/Version: SunOS Status: NEW Severity: minor Priority: P5 Component: core AssignedTo: wayned at samba.org
2007 Mar 23
1
upload progress bar don''t work...please help
Hello, I''m trying to install the upload_progress gem and i can''t see the upload progress status. My config is : apache2 with mod_proxy mongrel rails upload.rb : ############## require ''rubygems'' require ''drb'' require ''gem_plugin'' GemPlugin::Manager.instance.load ''mongrel'' => GemPlugin::INCLUDE
2011 Aug 21
1
dashboard 1.1.1 with filebucket doesn't show contents of the new file
Am using dashboard 1.1.1 with the use_file_bucket_diffs option. When clicking on the links within a report it will show the old md5 file (on the left) but not the new md5 file (on the right) like; content content changed ''{md5}26a3112822d01f2ce6b3f052bf2809de'' to ''{md5}dd97364ab0559344d73231f517951595'' 26a3112822d01f2ce6b3f052bf2809de ==> is displayed
2013 Nov 05
4
Handling closed clients
We have a service that clients use to upload files. We have a couple of clients that are on slow links and so their upload times out. We get errors in the logs that I''d like to get rid of. I was hoping that the recent commit 24b9f66dcdda44378b4053645333ce9ce336b413 would help us, but it does not. After digging in a bit, I have some ideas about why and a patch I''d like comments
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
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 Nov 30
3
Strange send_file problem
Or perhaps I am stumbling in newbie fashion (tho I have active_merchant and a store site basically up and running in development mode - still I don''t feel I always understand what is going on.) So, when I have send_file(filename, :type => ''application/x-zip'') redirect :action => index the send_file seems to hang, rather than complete. I''m deducing
2006 Jul 16
0
send_file with stream enabled
Has anyone managed to use send_file with :stream => true? I''m currently still developing using Rails 1.1.2 on windows xp so might be OS problem. But google results show this also happen on linux hosts. I think using send_file with :stream => false is pointless. Since send_data does exactly the same thing. Or am I mistaken? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Apr 13
0
Making @headers[''Refresh''] and send_file work together?
I''ve got a Rails 1.1 app where people can click a link to download a custom-generated file. The link to "Download Zip" goes to / controller/get_zip. That action looks like this: def get_zip @cart = find_cart ids = Array.new @cart.songs.each do |song| ids.push song.id end args = ids.join(" ") zipfile =
2005 Dec 02
0
send_file method on windows and webrick
I am developing in a windows xp environment running WEBrick and MySQL, RoR 0.13.1. I am trying to retrieve the file that I uploaded via Rails using the send_file() method. Instead of returning the file, the file''s contents are being printed out to the WEBrick console, the browser hangs for a while, and then an empty file is returned from the download dialog box (Firefox 1.0.7/IE
2005 Nov 11
0
Send_file and Firefox
Hello, I am trying to use send_file in my controller to serve up specific content: (.doc, ..xls) Seems to work fine in IE, but in FF (1.0.7, on Windows) after the file d/ls and the app (MS Word, MSExcel) opens up with the content, a blank window comes to the front (gets focus). Any idea how to prevent this? Do I need a redirect_to after the send_file in my controller''s download_file
2004 Oct 21
0
send_file on win32
Hello Railers, I''ve been trying to send files using send_file using latest «stable» gem. My rails runs on webrick, and I use latest pragmatic programmer installer on win32. No database backend yet. Nevertheless, everytime I send_file or I file.read() some file I''ve just opened, ruby crashes (I can read in my log "ruby bug... the runtime has requested...." but the