Welcome To Snipplr


Everyone's Recent Snippets Tagged file



« Prev 1 2 3 4 5 ... 10
How to create, copy, move, delete a file? Pour créer, copier, déplacer ou supprimer un fichier, on utilise la classe System.IO.File
0 1086 posted 5 years ago by martinbrait
Code to upload a file in PHP
0 1579 posted 6 years ago by devquora
This example shows you how to restrict to a specific file or multiple files. Add the following code block and edit the file name/s according to yuor needs.
0 1153 posted 7 years ago by apphp-snippets
Set headers for file download
0 918 posted 7 years ago by macodev
This is a simple script which downloads the latest "LoRa Server" files from the repository of the user brocaar in GitHub. Just make the file executable with a "chmod +x script_installer.sh" and run it, the program will give you the latest releases o...
0 867 posted 7 years ago by SoroushBlaster
This technical tip shows how to Set Line Spacing of the Paragraph in a Shape or Textbox in .NET applications. You can set the line space of the paragraph, its space before and space after using the TextParagraph.LineSpace, TextParagraph.SpaceBefore a...
0 2082 posted 8 years ago by sherazam
This technical tip shows how .NET developers can add line object to an Existing PDF File inside their .NET applications. Aspose.Pdf for .NET supports the feature to add graph objects (for example graph, line, rectangle etc.) to PDF documents. You als...
0 1958 posted 8 years ago by sherazam
Create a compressed TAR archive preserving permissions
0 943 posted 8 years ago by rm1984
Replace a string with another one in many files
0 1286 posted 8 years ago by rm1984
Generate a random file with random contents but with a fixed size
0 1052 posted 8 years ago by rm1984
General file upload script in php. Error set using SESSIONS.
0 1229 posted 8 years ago by aravindnair93
Uses javascript to create a hidden iframe which downloads the file
0 2690 posted 10 years ago by jakob101
This technical tip shows how to load any existing email message and modify its contents before saving it back to disk using Aspose.Email for Android API. To do this successfully, specify the MessageFormat when loading the email message from disk. In...
0 1294 posted 10 years ago by johansonkatherine
How to download file from file cabinet
0 1299 posted 10 years ago by NSahu
This code sample shows how Ruby developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0 1653 posted 10 years ago by johansonkatherine
This code sample shows how Java developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0 1628 posted 10 years ago by johansonkatherine
This code sample shows how C# developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0 2058 posted 10 years ago by johansonkatherine
PHP developers can learn how to merge multiple PDF files into a single PDF file using PHP REST API and SDK. To merge PDFs, you need to upload input PDFs to Aspose for Cloud Service or any supported third party storage and then send a PUT request to A...
0 1592 posted 10 years ago by johansonkatherine
The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET
0 1833 posted 10 years ago by johansonkatherine
This file starts at the bottom of the tree and recursively moves all of the files from that tree into another folder. To avoid overwriting files I prepended all of the files with a 9digit number.
0 917 posted 10 years ago by jlmarks
This example shows you how to remove file extension from URLs using .htaccess file directives. Remember, that "mod_rewrite" works only on Apache server. Before trying please be sure that you are working on Apache server and the "mod_rewrite" module/e...
0 1004 posted 10 years ago by apphp-snippets
This technical tip shows how .NET developers can export Microsoft Visio diagram to XML inside their own applications using Aspose.Diagram for .NET. Aspose.Diagram for .NET lets you export diagrams to a variety of formats: image formats, HTML, SVG, SW...
0 1676 posted 10 years ago by johansonkatherine
simple php file uploader with check for file extension and size.
0 1005 posted 11 years ago by codingforever99
Problem You want to recursively change all of the file permissions only on folders & subfolders in a directory, but not the files (or vice-versa: you want to change the permissions on files only, not folders).
0 908 posted 11 years ago by nkm
Generate a generic file comment
0 854 posted 11 years ago by brownrl
Launch DOS prompt to the SharePoint 2013 hive. To 'Run as Administrator' simply right-click on the batch file and select that option.
0 1150 posted 11 years ago by adove
Open Windows Explorer to the SharePoint 2013 hive using a batch file. Double-click the batch file.
0 1163 posted 11 years ago by adove
Place this snippent in your script, and call it like this: urllib.urlretrieve(getFile, saveFile, reporthook=report) Notice it is the 3rd argument that calls the function on each file that needs to be downloaded.
1 2008 posted 11 years ago by o0110o
This function can be used to check if a file exists using the HTTP header response. Example use, when looping through cached JSON objects (instagram API, etc.)
0 1045 posted 11 years ago by rickygri
Uploading a binary file(like .doc) to Dropbox. I tried with .ics and it worked.
0 932 posted 11 years ago by RobinD
« Prev 1 2 3 4 5 ... 10