publish - Safari Extension available via a web server -


i working on safari extension , want publish extension on website. using following code user able download .safarixtz file , install it:-

<%string filename = "<safariextz file path>" ;         response.setcontenttype("application/octet-stream safariextz");  string disheader = "attachment;filename=test-safari.safariextz"; response.setheader("content-disposition", disheader);  // transfer file byte-by-byte response object file filetodownload = new file(filename); response.setcontentlength((int) filetodownload.length()); fileinputstream fileinputstream = new fileinputstream(filetodownload); int = 0; while ((i = fileinputstream.read()) != -1) {     out.write(i); } fileinputstream.close();%> 

but resulting file can not installed on safari browser , throwing error:-

safari can't install extension error occurred while installing extension

i want installation start moment user click on install link in apple gallery.

thanks

this because extension has error. can please share extension can checking it.

also, not use these code serve extension file. not need to this.

all need - upload extension server's public file, , url of - modify server config file (apache or other http server can configured adding line in config file ) hanlde .safariextz file

you done.

first make sure have no error in extension.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -