File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export default class SPService implements ISPService {
103
103
headers : { "X-HTTP-Method" : 'DELETE' , }
104
104
} ;
105
105
const webAbsoluteUrl = ! webUrl ? this . _context . pageContext . web . absoluteUrl : webUrl ;
106
- const apiUrl = `${ webAbsoluteUrl } /_api/web/lists(@listId)/items(@itemId)/AttachmentFiles/getByFileName(@fileName)?@listId=guid'${ encodeURIComponent ( listId ) } '&@itemId=${ encodeURIComponent ( String ( itemId ) ) } &@fileName='${ encodeURIComponent ( fileName . replace ( / ' / g, "''" ) ) } '` ;
106
+ const apiUrl = `${ webAbsoluteUrl } /_api/web/lists(@listId)/items(@itemId)/AttachmentFiles/getByFileName(@fileName)/RecycleObject ?@listId=guid'${ encodeURIComponent ( listId ) } '&@itemId=${ encodeURIComponent ( String ( itemId ) ) } &@fileName='${ encodeURIComponent ( fileName . replace ( / ' / g, "''" ) ) } '` ;
107
107
const data = await this . _context . spHttpClient . post ( apiUrl , SPHttpClient . configurations . v1 , spOpts ) ;
108
108
} catch ( error ) {
109
109
console . dir ( error ) ;
You can’t perform that action at this time.
0 commit comments