IP*Works! 2016 macOS Edition
IP*Works! 2016 macOS Edition
Questions / Feedback?

attachedFile (property)

A file to append to PostData if the POST or PUT methods are used.

- (NSString*)attachedFile

- (void)setAttachedFile:(NSString*)newAttachedFile

Default Value

""

Remarks

If this property contains a non-empty string, then if the HTTP 'POST' or 'PUT' methods are used (through the Post or Put methods), the contents of this property are appended to the HTTP request after any data in PostData.

An HTTP 'Content-Length' header is also added to request. Its value is the cumulative length of the PostData string and the file.

If data is being uploaded to a web service the WebUpload class is recommended as it will automatically encode file and form variables. Alternatively the MIME class may be used to construct the raw MIME entity which may be sent via this property.

 
 
Copyright (c) 2020 /n software inc. - All rights reserved.
IP*Works! 2016 macOS Edition - Version 16.0 [Build 7353]