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 134 posted 9 months ago by martinbrait
Code to upload a file in PHP
0 154 posted 1 year 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 97 posted 2 years ago by apphp-snippets
Set headers for file download
0 80 posted 3 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 61 posted 3 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 208 posted 3 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 149 posted 3 years ago by sherazam
Create a compressed TAR archive preserving permissions
0 78 posted 3 years ago by rm1984
Replace a string with another one in many files
0 124 posted 3 years ago by rm1984
Generate a random file with random contents but with a fixed size
0 84 posted 3 years ago by rm1984
General file upload script in php. Error set using SESSIONS.
0 110 posted 4 years ago by aravindnair93
Uses javascript to create a hidden iframe which downloads the file
0 290 posted 5 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 111 posted 6 years ago by johansonkatherine
How to download file from file cabinet
0 94 posted 6 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 119 posted 6 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 143 posted 6 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 134 posted 6 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 100 posted 6 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 153 posted 6 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 58 posted 6 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 77 posted 6 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 169 posted 6 years ago by johansonkatherine
simple php file uploader with check for file extension and size.
0 75 posted 6 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 67 posted 6 years ago by nkm
Generate a generic file comment
0 62 posted 6 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 94 posted 6 years ago by adove
Open Windows Explorer to the SharePoint 2013 hive using a batch file. Double-click the batch file.
0 87 posted 6 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 154 posted 6 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 76 posted 6 years ago by rickygri
Uploading a binary file(like .doc) to Dropbox. I tried with .ics and it worked.
0 71 posted 6 years ago by RobinD
« Prev 1 2 3 4 5 ... 10