Hi,
I need to upload files in my application
I am using following code
But I want that the file field that gets displayed in my browser should
not be editable.
i.e user should be able to select the file through the browse click
only.
Hi,
I need to upload files in my application
I am using following code
But I want that the file field that gets displayed in my browser should
not be editable.
i.e user should be able to select the file through the browse click
only.
On 19 Jun 2008, at 14:24, Sneha G. wrote:
should
not be editable.
i.e user should be able to select the file through the browse click
only.
The file field is implemented browser specifically, on Safari for
example, there simply isn’t an editfield you can fill in. You can’t
change this behavior. The only way it might possibly work is if you
place a
Best regards
Peter De Berdt
Peter De Berdt wrote:
On 19 Jun 2008, at 14:24, Sneha G. wrote:
should
not be editable.
i.e user should be able to select the file through the browse click
only.The file field is implemented browser specifically, on Safari for
example, there simply isn’t an editfield you can fill in. You can’t
change this behavior. The only way it might possibly work is if you
place ainput field and make sure the clicks don’t fall through
(either using onclick=“return false;” on the div or using unobtrusive
javascript to do so). That said, make sure you check and adjust the
placement of thein all browsers and don’t show it on Safari.Best regards
Peter De Berdt
But atleast is it possible to handle
i.e if the user is editing the wrong path
an error message should get flashed
But in my case whwtever path you mention it is getting saved.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs