[ckan-changes] [ckan/ckan] 03d8d7: [#1550] Show the file name when uploading a resour...

GitHub noreply at github.com
Wed Apr 2 00:08:57 UTC 2014


  Branch: refs/heads/1550-what-file-did-i-upload
  Home:   https://github.com/ckan/ckan
  Commit: 03d8d70dd2262bc53f84cbce0551f57a1616a15c
      https://github.com/ckan/ckan/commit/03d8d70dd2262bc53f84cbce0551f57a1616a15c
  Author: Vitor Baptista <vitor at vitorbaptista.com>
  Date:   2014-04-01 (Tue, 01 Apr 2014)

  Changed paths:
    M ckan/public/base/javascript/modules/image-upload.js
    M ckan/public/base/less/forms.less

  Log Message:
  -----------
  [#1550] Show the file name when uploading a resource

Hiding it is bad makes it hard for the user to check its URL (although it makes
it more difficult for her to change it by mistake).

When you first upload, some browsers have a safety feature to not disclosing
the file's full path to the page so, instead of getting something like:

```
/home/vitor/datasets/unemployment.csv
```

You get:

```
C:\fakepath\unemployment.csv
```

To avoid bothering the user showing this ```fakepath``` stuff, we remove it,
showing just the file name. This only happens when uploading a file. The next
time you edit the resource, we'll have the entire URL, so that'll be shown
instead.




More information about the ckan-changes mailing list