obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

How to add custom "File Name" to an image/file being uploaded?

Hello!

We are working on it.
I will let you know when have more information from developers team.

xman
Posts: 0
Joined: Sun Jul 06, 2014 7:05 pm

How to add custom "File Name" to an image/file being uploaded?

I have continued to see if a hack would work, but that also has not worked. My hack depended upon Appery file upload service to return the name of the file in the Response, but it seems the service is simply uploading the file and not returning back anything in response (at least not file name). :(

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to add custom "File Name" to an image/file being uploaded?

Hi xman,

Please give us your app public link and describe how we can reproduce your problem.

Regards.

xman
Posts: 0
Joined: Sun Jul 06, 2014 7:05 pm

How to add custom "File Name" to an image/file being uploaded?

Yurii,

There is nothing special I am doing. You can reproduce the problem fairly easily if you see my first post here. Just do this:

(1.) Create a file upload service using the tutorial from Appery:
http://devcenter.appery.io/tutorials/...

(2.) Now add a new param to the upload service "File Name", or "file_name", or "Original File Name" (I've tried all of the options, including the exact name of the column in the "Files" predefined collection".

(3.) Map a local storage variable (LSV) to this param (from #2 above). The expectation is that the name of the file being uploaded will be according to this LSV.

Problem Signature:

-----------------------

The files get uploaded but the name of the file in Files collection can never be manipulated.

"File Name" remains in the format:

"Original File Name" remaings:

xman
Posts: 0
Joined: Sun Jul 06, 2014 7:05 pm

How to add custom "File Name" to an image/file being uploaded?

My tags got cut out, so trying again:

"File Name" remains in the format:
(appery-assigned-code)(original name of the file being uploaded)

"Original File Name" remains:
(original name of the file being uploaded)

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to add custom "File Name" to an image/file being uploaded?

Hello,

Yes, "File Name" is in the format:
(appery-assigned-code)(original name of the file being uploaded)

"File Name" and "Original File Name" can't be changed after uploading file to Database. A new field in Files collection cannot be added. You can save filename in any other collection.

xman
Posts: 0
Joined: Sun Jul 06, 2014 7:05 pm

How to add custom "File Name" to an image/file being uploaded?

Hi Katya,

I did not want to change the file name "after uploading file to Database". What I want to do is to add a custom name/tag "during the upload process". You have 2 columns today in the Files predefined collection in appery:

(1.) File Name
(2.) Original File Name

What is the point of having 2 columns for the file name if one cannot be manipulated by the file upload service?

-

xman
Posts: 0
Joined: Sun Jul 06, 2014 7:05 pm

How to add custom "File Name" to an image/file being uploaded?

Plus note that the original name of the file being uploaded is already present in the "File Name"

(appery-assigned-code)(original name of the file being uploaded)

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to add custom "File Name" to an image/file being uploaded?

Hello Xman,

Sorry for delay. Yes, exactly. Original File Name is kept in order to know the original name of the file.

xman
Posts: 0
Joined: Sun Jul 06, 2014 7:05 pm

How to add custom "File Name" to an image/file being uploaded?

Hi Evgene,

That is where I'm asking you folks a question. That is: why not allow the file upload service to manipulate the "File Name" column then?

Return to “Issues”