This topic is locked
[SOLVED]

 length of my_json_decode($values["filename"]) gets over 255

3/12/2018 11:17:50 AM
PHPRunner General questions
Y
YCH author

I have a table with a field for files to upload.

This field is called "filename" and is varchar 255. Long enough to store the filename.
But when uploading the file, the length of my_json_decode($values["filename"]) gets over 255.
a) What can I do beside changing the field to mediumtext and/or give the filename some shorter name ?
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=25415&image=1&table=forumtopics' class='bbc_emoticon' alt='B)' /> On the other hand how can I - in a standard manner - block the automated filename transform on uploading ?

admin 3/12/2018

You can use 'basic upload' option which will only store the file name in the field.

Y
YCH author 3/12/2018



You can use 'basic upload' option which will only store the file name in the field.


Works well. Thank you.