similar to: Uploading files and writing them to server?

Displaying 20 results from an estimated 1000 matches similar to: "Uploading files and writing them to server?"

2006 Jun 08
1
Permissions on uploaded files, TinyFile
Hi, im getting a little trouble with this, im using TinyFile as the example to upload files http://wiki.rubyonrails.com/rails/pages/TinyFile/versions/20 All goes well but the files uploaded are saved with permissions 600 (linux) and in the case of images arent showed on the browser(but uploaded and stored in the server without problems) i have to manually ftp to the uploaded files folder and
2006 Jan 09
1
Saving an upload
I am creating a database for movies (films) and television shows (shows) that will have has_and_belongs_to_many relationships with the pictures table. CREATE TABLE screenshots ( id serial NOT NULL, filename character varying NOT NULL, content_type character varying NOT NULL, primary key (id) ); CREATE TABLE films ( id serial NOT NULL, name character varying NOT NULL,
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
I submitted this earlier, but the web forums went down and I''ve screwed up the thread, so I''m starting over. I''m trying to built a document upload system. The system has a main Document model with different subclasses for different types of documents. With the code below, if I attempt to create a Document, it works fine, but if I attempt to use one of the subclasses, I
2006 Sep 05
2
Mongrel and umask for uploaded files
So any files that are uploaded through my form are getting the following mode: -rw------- I need them to have: -rw-r--r-- I''ve tried setting the umask in a script file called set_umask.rb as follows: File.umask(022) and then starting mongrel using: mongrel_rails start -m config/mime.types -S set_umask.rb but it doesn''t seem to change the mode that the files are created
2006 Mar 29
3
beer
Hello, all I have one string in my controller but i need to knwon how i verify if it is numerical Thanks... -- Posted via http://www.ruby-forum.com/.
2006 Jul 07
7
file_column repository broken?
I really want to try out file_column but the repository seems to be down for me. I added it to my repository list and script/plugin is unable to see anything in it. I downloaded an archive from the website but it is not clear to me which files need to be installed to which subdirs of my RoR project. Anyone else having this issue with the repository? I am able to see other repositorys no
2006 Jul 26
4
Upload File
I got this error: NoMethodError in PictureController#new You have a nil object when you didn''t expect it! The error occured while evaluating nil.uploaded_file= and the line code is here: @picture.uploaded_file = @params[''picture_file''] -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
1
Posting multiple files - how to set up params correctly
All, I have a page where I am allowing the user to specify multiple image files that are related to one HTML document. I want to end up with an array of image files that I can then assign into an array within the controller. I''m trying to set up my file_field correctly but am having trouble. I''m not clear on how "the multiple input tags with the same name turning into
2006 Mar 29
2
Multiple calls from drop_receiving_element :complete
Hi, Firstly I am very new to Ruby on Rails but think its fantastic! :o) I am trying to figure out how I can call multiple functions from the drop_receiving_element :complete. I have the following code in my index.rhtml and it works fine. It calls the javascript function "additem" that is on the page. <%= drop_receiving_element "dcwindow", :update =>
2006 Jan 06
4
Upload Progress Bar Problems
I''m writing an application where the user will be uploading many images and user feedback is essential. I''ve been trying to get the upload progress bar plug-in to work, but thus far have not had any success. I''ve downloaded Sean Treadway''s application code from his site http://sean.treadway.info/demo/upload/ and I followed the steps in his Upload
2006 May 01
10
large file storing in postgres sucks?
Hi, I''m not sure if this is a postgres issue or not, but I''m using Postgres 8.1. I have (in my functional tests) the following code: upload = fixture_file_upload(''/files/podcast.mp3'', ''audio/mpeg'') post :create, :product => valid_product, :media => { :image => upload } And then in the controller: blob = Blob.create :data
2006 Mar 30
6
Global Method Declaration?
Is there a place where I can put a method that can be accessed in both views and controllers? Here''s the situation, maybe someone can suggest a better way to go about this: I created my own custom login system with email verification and user roles (basically, I tinkered around with SaltedHashLoginGenerator until I finally gave up and wrote my own). One role, of course, is an admin
2006 Jan 22
12
Problems with File_column
Hi, Rails - newbie here.. I''m setting up an app and am trying to use file_column to upload a picture with an item and I''m running into several problems. (Background: I''m running Locomotive Rails under OS X 10.4.4, and using Safari) I followed the directions to add the necessary items, then found out that I had to add the item to make the form tag be a multipart
2006 Jun 04
4
Fil from filsystem -> db
Since Ajax doesn''t support file uploads, I''m using "IFRAME remoting made easy" (http://sean.treadway.info/). I''m saving a file to the filesystem, and then trying to put it in to the database when I do the final submit with ajax. I thought picking the file up and putting it in the db would be as easy as having: "@image.data =
2008 Jul 27
1
Radiant CMS 0.6.8 "Incise" Release
Looks like it''s time for another release of Radiant: http://radiantcms.org/download/ Radiant 0.6.8 "Incise" adds a number of new features that enhance support for extensions and completes the project''s move to github. Of special note are: * Extension installer/uninstaller scripts (script/extension) and a global ''extension registry'' at
2006 May 19
9
Resize uploaded image file without creating temp file?
Hi, I need to take a single uploaded image file and save three resized versions of it, a thumbnail, normal and large version. I was planning on doing this in my model by having an array of geometry strings and looping through them, each time saving a new image object resized to the correct geometry. I know that file column does similar stuff, but I would prefer to have a separate database row
2011 Mar 26
2
upload file, read first 10 lines.
I have a csv file and in my controller: uploaded_file = params[:upload][:csv].read @rows << FasterCSV.parse(uploaded_file) I want to put in @rows only the first 10 lines but the read method reads all the file. How can I do? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 May 17
2
Problem uploading files
Hi everyone, I''m having trouble uploading some files. I''ve set up a simple action whose view looks like: <%= start_form_tag({:action => ''handle_file_test''}, {:multipart => true}) %> <label for="file">File to Upload</label> <%= file_field_tag "file" %> <%= submit_tag %> <%= end_form_tag %>
2007 May 16
1
Rails, Mongrel and Rmagick
i have a rails app with a form that allows uploading an image file. I take the image file and read it into rmagick to verify that it''s an image. For some reason I can''t catch an exception thrown by rmagick inside the app. After an invalid image file is uploaded the process just hangs. I have to kill mongrel and restart to use the app again. img =
2006 Jun 09
8
[how can i delete a file system..please help]
Hi, I''m trying to delete a file system (<xml_26548975.xml>) File.delete("xml_26548975.xml") But I get this error: "Permission denied - ./script/../config/../uploads/xml_26548975.xml". Why? -- Cheers, ioana k&a http://boulangerie.wordpress.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: