Uploaded File deleting after form submit

QuestionsUploaded File deleting after form submit
Michael Sheppard asked 3 years ago

I’m having an issue since the most recent build update to a report that used to work perfectly.

I have a form pop-up (add) that allows me to upload a file. The File Upload button works perfectly – the file uploads and previews (verified by checking the upload folder).

However, as soon as I hit the submit button, the uploaded file is deleted from the upload folder.

Have you seen that behavior? I’m not sure where the issue is – and it seems to do this for multiple different file formats (.jpg, .png).

 

Please advise

 

Thanks

 

Mike

3 Answers
Mike answered 3 years ago

I should add this is a file-upload with a master and 2 sub-grid reports.

If I remark the @unlink line on jqgrid_dist.php the file does-not get deleted. So I believe something is causing jqgrid to think the unlink is being passed, when it is not.
@unlink(“$uploads_dir/$f”);

 

Any help is greatly appreciated.

Thanks

Mike

 

 

Mike answered 3 years ago

Any updates on this? I’ve disabled the @unlink command in jqgrid.dist in order to be able to upload files in the short-term.

 

Thanks

 

Mike

Abu Ghufran Staff answered 3 years ago

Hello,

I’ve emailed you latest build that should solve this issue.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

10 + 5 =

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?