On 19 November 2012 09:14, Akvarel <[email protected]> wrote:
> The check is performed during the upload. If the filename exists already in
> the database it will not be uploaded twice. Cannot I use this "during
> uploading" time to check the content of the file?

The upload operation is the act of transmitting the file from the
client PC to the server.  Actions may be performed before the file is
uploaded (at the client) or after the file is uploaded (at the server,
operations such as updating the database).  Nothing other than the
transfer of the file is going to happen "during uploading".  It may be
that you want to do the things you want after the file is transferred
but before the database is updated.

Colin

>
> Am Montag, 19. November 2012 01:04:56 UTC+1 schrieb Scott Ribe:
>>
>> On Nov 18, 2012, at 2:15 PM, Akvarel wrote:
>>
>> > All rb files are executed in the server. Yeas, but when you try to
>> > upload a file that already exists in the database, it does not let you do
>> > so. So, it is possible to validate a file, namely a file name or extension
>> > or size  before uploading the file.
>>
>> What makes you think the check is performed before the upload?
>>
>> --
>> Scott Ribe
>> [email protected]
>> http://www.elevated-dev.com/
>> (303) 722-0567 voice
>>
>>
>>
>>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/B7--NWT6AzAJ.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to