FILE UPLOAD EDIT MODE

QuestionsFILE UPLOAD EDIT MODE
Giovanni Luca Bonelli asked 10 years ago

I tested Your "file-upload.php" example from "demos" and I can upload file only in "add" mode. If I try edit row, I can't upload and I can't delete uploaded files? Why this?
In my own simple code, with a simple grid (no INNER JOIN) I have the same problem but extending the grid with "bulk edit", I can delete and upload file from edit mode.

What I'm doing wrong ?

Thank you in advance….

4 Answers
Abu Ghufran answered 10 years ago

In edit dialog, can you confirm me steps.

1) edit row and edit dialog opens
2) click delete button beside uploaded file name
3) upload new file
4) submit

This would remove the old and upload the new. This does not remove from file system.
For that you need to connect on_update event handler and unlink the old file (as in demo code).

Giovanni Luca Bonelli answered 10 years ago

Step 2 failed! I don't see delete button so I can't remove file.
Step 1: edit dialog show only with bulk edit. Can I block inline editing?

Giovanni Luca Bonelli answered 10 years ago

I'm sorry. I make a mistake.
I would say that I can't delete uploaded file only with inline editing because there isn't a delete button. How I can show this button also in inline editing?

Abu Ghufran answered 10 years ago

File operations are not supported in inline mode.
You can disable the inline editing for file field.

$col["show"] = array("list"=>false,"edit"=>true,"add"=>true);

Your Answer

1 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?