Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
lumen-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
308bc638
authored
Feb 23, 2018
by
John Doe
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed test suite
parent
e948410a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/services/data_view/create_data_view.rb
app/services/data_view/create_data_view.rb
View file @
308bc638
...
...
@@ -13,7 +13,7 @@ class CreateDataView
@data_view
=
DataView
.
new
(
data_view_params
.
merge
({
owner:
user
}))
#resize thumbnail because client can upload any dimension
if
(
!
@data_view
.
image
.
empty?
)
if
(
!
@data_view
.
image
.
nil?
&&
!
@data_view
.
image
.
empty?
)
metadata
=
"data:image/png;base64,"
base64_string
=
@data_view
.
image
[
metadata
.
size
..-
1
]
blob
=
Base64
.
decode64
(
base64_string
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment