Carrierwave metadata for original creation date?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Carrierwave metadata for original creation date?

fugee ohu
How do I keep a record of the original creation date? What if I wanna preserve the original creation date?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b1715e52-b8f1-4a3c-9c8c-9c6a99e84b09%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Carrierwave metadata for original creation date?

Colin Law
On Fri, 20 Sep 2019 at 18:10, fugee ohu <[hidden email]> wrote:
>
> How do I keep a record of the original creation date? What if I wanna preserve the original creation date?

Each record in the database has a created_at field.  At least mine do.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsoiMAJ7fMjFAFKrScDUr4gVn54PENM0tisjdQOTb3kHQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Carrierwave metadata for original creation date?

fugee ohu


On Friday, September 20, 2019 at 5:13:44 PM UTC-4, Colin Law wrote:
On Fri, 20 Sep 2019 at 18:10, fugee ohu <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="PhZu8OsdBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...> wrote:
>
> How do I keep a record of the original creation date? What if I wanna preserve the original creation date?

Each record in the database has a created_at field.  At least mine do.

Colin

The file that's being uploaded

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3d57cd88-89f8-4997-9ac1-d29a1e793ca2%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Carrierwave metadata for original creation date?

Hassan Schroeder-2
On Fri, Sep 20, 2019 at 3:00 PM fugee ohu <[hidden email]> wrote:

>> > How do I keep a record of the original creation date? What if I wanna preserve the original creation date?

Looks like that's a no:

https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications

(unless you control the source endpoints and can incorporate that
information into e.g. the file name).
--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCjbFY6q%2BmxAxej5vLcttZAevmqt%2B1Sqv3h9w8WEUN%3D4Q%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Carrierwave metadata for original creation date?

fugee ohu
In reply to this post by Colin Law


On Friday, September 20, 2019 at 5:13:44 PM UTC-4, Colin Law wrote:
On Fri, 20 Sep 2019 at 18:10, fugee ohu <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="PhZu8OsdBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...> wrote:
>
> How do I keep a record of the original creation date? What if I wanna preserve the original creation date?
od
Each record in the database has a created_at field.  At least mine do.

Colin

I want the creation date of file before it's uploaded Can you tell me how to find it I know it has something to do with ruby mtime function

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b27faa71-8872-4ea7-83bc-b70bc787a43d%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Carrierwave metadata for original creation date?

Rob Biedenharn-3


On 2019-Sep-25, at 14:45 , fugee ohu <[hidden email]> wrote:



On Friday, September 20, 2019 at 5:13:44 PM UTC-4, Colin Law wrote:
On Fri, 20 Sep 2019 at 18:10, fugee ohu <[hidden email]> wrote:
>
> How do I keep a record of the original creation date? What if I wanna preserve the original creation date?
od
Each record in the database has a created_at field.  At least mine do.

Colin

I want the creation date of file before it's uploaded Can you tell me how to find it I know it has something to do with ruby mtime function

You can't get that information in the browser. The best you could do is the lastModified time of the file.





-Rob

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/68360982-1BA8-45C7-A68B-EB2B4D2D8D89%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Carrierwave metadata for original creation date?

fugee ohu


On Wednesday, September 25, 2019 at 6:05:46 PM UTC-4, Rob Biedenharn wrote:


On 2019-Sep-25, at 14:45 , fugee ohu <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="J2T-xRqyBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...> wrote:



On Friday, September 20, 2019 at 5:13:44 PM UTC-4, Colin Law wrote:
On Fri, 20 Sep 2019 at 18:10, fugee ohu <[hidden email]> wrote:
>
> How do I keep a record of the original creation date? What if I wanna preserve the original creation date?
od
Each record in the database has a created_at field.  At least mine do.

Colin

I want the creation date of file before it's uploaded Can you tell me how to find it I know it has something to do with ruby mtime function

You can't get that information in the browser. The best you could do is the <a href="https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFile%2FlastModified\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNYq8y72EmYeo5S8mj-GOPCvdqkw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFile%2FlastModified\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNYq8y72EmYeo5S8mj-GOPCvdqkw&#39;;return true;">lastModified time of the file.


<a href="https://developer.mozilla.org/en-US/docs/Web/API/File" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFile\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGxBaO4HLDlsfRx0zKpzvdbZglmMA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFile\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGxBaO4HLDlsfRx0zKpzvdbZglmMA&#39;;return true;">https://developer.mozilla.org/en-US/docs/Web/API/File

<a href="https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFile%2FlastModified\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNYq8y72EmYeo5S8mj-GOPCvdqkw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFile%2FlastModified\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNYq8y72EmYeo5S8mj-GOPCvdqkw&#39;;return true;">https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified


-Rob


  They talk about cases where the last modified time isn't available What kind of device might someone be uploading a file from that doesn't have a last modified date for a file I never saw a file without a last modified date

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b52f5309-7aad-45cc-93f4-684b244947ca%40googlegroups.com.