View Issue Details

IDProjectCategoryView StatusLast Update
0004992mantisbtbugtrackerpublic2005-04-18 10:44
Reporterpdugas Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.0.0a1 
Summary0004992: Use of is_uploaded_file() in file_add() prevents use in importer PHP script.
Description

I'm working on a PHP script to import issues from my old system and want to include attachments. Calling file_add() after bug_create() and bug_update(), the files are never attached. Turns out there is a call to is_uploaded_file() that is preventing the attachment.

Additional Information

I'm not really sure if you want to deal with this. I just commented out the test to bypass it for now. Figured it was worth mentioning in case others are trying to do the same.

Is there any interest in the script? I'll attach relevant portions if desired.

TagsNo tags attached.

Relationships

child of 0004937 closedvboctor Mantis 1.0.0a1 Release 

Activities

jlatour

jlatour

2004-12-16 17:27

reporter   ~0008679

The check should probably be done somewhere else...

thraxisp

thraxisp

2004-12-16 19:42

reporter   ~0008681

fixed in CVS. The check is redundant as it is done prior to calling file_add().