Displaying 20 results from an estimated 20000 matches similar to: "File upload directly to DB"
2006 Jun 07
1
Upload to DB hang mentioned in wiki
I''m uploading files to a mysql database, using a mediumblob size.
Following the wiki here:
http://wiki.rubyonrails.org/rails/pages/HowtoUploadFiles ,
I got past the first mysql 500kb limitation with the max_allowed_packet = xM
trick, setting it to 1000M.
However, as the person at the very bottom of the wiki notes, I too cannot
upload more than around 10mb.
I also tried the suggested
2006 Aug 08
1
File upload into Mysql (using lighttpd) problem
Hello All,
I''ve run into a snag. (I apologize in advance. I''m not very good at
system administration.)
I''m building an app that allows users to upload files. Up until now I
have been storing the files on the file system, but tonight I decided to
change the app so the files are stored in the database as a longblob.
I thought everything was working great, until I
2006 Aug 01
3
Upload file to file system and sql insert date errors
I''m trying to use one form to upload a file to the file system
and insert a title and description field into the database.
I have no problem uploading files to the file system
using the code from
http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles
There are more fields on the form than need to be inserted into
the database, name and file.
I need to pull out these extra fields
2007 Jun 17
1
Problem: Upload file size limit to 500KB
hi,
i''m sure some of you had come across this problem before, but i was
unable to find the answer after spending quite some time searching.
i have a basic file uploader, code similar to rails recipe (or rails
manual).
problem occurs when i try to upload files (images) greater than 500KB.
the largest file i could upload was 493KB and i''ve uploaded a bunch
files under 490KB and
2010 Nov 18
0
max_allowed_packet mysql
Hi
I am using rails 2.3.8 with mysql 5.1. In my attachment model the
validation was
validates_attachment_size :attachment, :less_than => 2.megabytes,
:message => "Upload file size should not exceeds 2 MB"
And my /etc/my.ini has
max_allowed_packet = 16M
The above worked perfectly. But now I need file limit size as
10 MB instead of 2 MB. So I changed validation
2006 Aug 02
3
Upload forms--where is the file object?
Hi All,
I''ve been trying to create an upload form page that will take an
uploaded file, and save it to a directory on the server. I''ve tried
following a couple of posts on this list, and the HowTo from here:
http://wiki.rubyonrails.org/rails/pages/HowtoUploadFiles
Here is the code in my view:
<%= start_form_tag ( {:action => "upload"}, { :mulipart => true }
2006 Apr 10
3
File Upload Problems
following the instructions at
http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles, I am able
to upload to an explicit and existing directory (i.e.
c:\ror\app\public\images\photo.jpg). However, when I try to upload to
a folder that does not exist, say,
c:\ror\app\public\image\newfolder\photo.jpg, I get the following error:
Errno::ENOENT in Images#create
No such file or directory -
2006 Apr 07
1
Upload corrupts images. Any ideas why?
Hi,
I have written upload action and it seems to be working in general but
image files consistently get corrupted. They differ in both content and
size.
I have uploaded a small text file without any problems.
Everything is running on my laptop, WEBrick is the server.
Code:
***********
begin
@filename = @params[''NewFile''].original_filename
2005 Mar 08
3
Extracting images from a DB
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would like to extract an image BLOB from my database and display it
alongside some other information on my ''edit'' page. I read the
information here
http://wiki.rubyonrails.com/rails/show/HowtoUploadFiles
and that was really helpful.
However, it still isn''t clear to me how I would get access to the image
in my views if
2013 Apr 16
1
Ruby Error Encountered when Installing Dashboard for Puppet Open Source
I''ve installed Puppet and am installing Dashboard on CentOS 6. I''m running
into an ''undefined method'' when installing the dashboard. To install
Puppet Open Source, I ran:
> rpm -ivh
2006 May 11
0
File upload works with webrick, but fails in lighttpd 1.4.11
I''ve been trying to add a basic file upload feature (just based on the
Rails Recipes example), but I find that it only works with the webrick
server and not my lighttpd 1.4.11 server.
I''m running Rails 1.1.2 on OSX. The upload silently fails with both
firefox and Safari, even with the useragent hack and with any size of
file/image. My lighttpd config is pretty standard as
2006 Aug 28
1
File Upload Truncated
I have a problem uploading files into a MySQL database (4.1.18) using
Lighttpd (1.4.11) and the MySQL C api (2.7). All the files that I
upload are truncated at about 65K, though, the temp file is the correct
length. No errors are thrown and the max_allowed_packet is set to 10GB.
I''m running on OSX.
Any thoughts or pointers are much appreciated.
2006 Feb 25
0
Simple file upload help
I''m trying to implement the simple file upload example at
http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles
However, I''m getting an error "No such file or directory" when I
submit the form...
Errno::ENOENT in Admin/websites#create
No such file or directory - /images/websites/websitename.jpg
I believe it''s relating to the code in the model:
def
2006 May 05
1
Uploading files > 10mb using InstantRails 1.0 configuration.
Hi,
I''m using InstantRails 1.0 (rails 1.0 and ruby 1.8.4). When I try to upload
a video file ~11MB, IE just hangs on me. Seems like WEBrick hangs too and I
can''t connect from another IE. I end up manually killing WEBrick. Would
anybody know the problem here? I had to increase my mysql max_packet_size
parameter in order to upload in the first place so mysql doesn''t
2006 Mar 01
1
upload file above /public, authenticate before serving?
I have file uploads to the database and stored in a longblob working on
our client extranet, except that it kills mysql/activeRecord on files
bigger than about 200kb. (is there a reason for this - running mysql
5.0.18, lighttpd or webrick on winxp??)
So I''m now thinking about whether its possible to do either:
1) upload a file into #rails_root/some_folder/ instead of
2006 Jan 12
3
File Upload Problems With Apache and Lighttpd But Not Webrick...
I am having trouble uploading files through a form when using Apache
(production) or Lighttpd (development). The odd thing is that when I force
script/server to load Webrick, the upload works just fine on the same
code-base.
When it fails, the upload just sits there forever. Some browsers eventually
return an error code, others spin for a long time... Anyway, it never
recovers.
The file is a
2006 Apr 24
1
Upload Progress Bar not showing
Hi. I''m setting up an upload form for internal users of a Rails site,
and I''m trying to use the Upload Progress Bar plugin from
http://sean.treadway.info/demo/upload/. I followed the directions as set
out in the Rails Wiki
(http://wiki.rubyonrails.org/rails/pages/Upload+Progress+Bar).
Basically the problem is no progress bar or any upload information shows
up. In WEBrick, I
2006 Jun 26
4
Missing Content-Length header with lighttpd
We have our rails application running using lighttpd and everything
seems fine with Firefox, but when the client is Explorer some media
doesn''t get transferred from the server correctly. With Webrick,
Content-Length is set when a request is made for an mp3 file. Using
Firefox with lighttpd, Transfer-Encoding is set to chunked, so the
Content-Length field isn''t required.
2006 May 03
0
file upload problem
Hello,
I have an upload controller which uploads file into a mysql database and
it works fine on my local machine where I am using webrick but when I
use it on a live apache server then it gives me the following error:
ActiveRecord::StatementInvalid in <controller not set>#<action not set>
Mysql::Error: You have an error in your SQL syntax near
2006 Mar 06
0
fastcgi upload - multipart problem
Hi,
I''ve got multipart request with 1 file upload form problem.
I''m using suse 10 basic installation :
-ruby 1.8.2,
-rubyfcgi 0.8.6-5,
-apache 2.0.54,
-apache2-mod_fastcgi-2.4.2-4
When starting whith webrick, my application uploads files
correctly.When using both cgi or fastcgi, browser runs forever with
files greater than 5kb.
fastcgi