How to check zip file in pl/sql - plsql

At work, I need to regularly send zip archives from files that are in the database. Sometimes the files in the archives break, which greatly disrupts the work. Is there a way to check the archive in PL/SQL?

Related

Can a CSV file within a WordPress plugin be accessed from the frontend of a website?

I am currently working on an implementation reading data from a csv file from within a WordPress plugin. It was suggested the file be added within the plugin in an assets directory. I have concerns in doing this. In particular, I'm worried about security and whether this makes the site vulnerable to attacks.
That being said, I looked at the assets folder in the frontend on my local environment and was not able to see the csv file.
Does anyone know if adding a csv file directly to a plugin introduce security risks?
Alternatively, I was thinking about uploading this csv to AWS and reading the data from there.
Good day, Lara.
I am wordpress developer and try to help you now.
We know that every plugin we install should be correct but there are can be some risks.
The wordpress Core do not allow to call CSV and other files directly from folders. For example like assets folder.
But the plugin is third hands software so if a developer do not protect it, anybody can have access to the file.
My advice to check the Stars and Reviews of plugin on
https://wordpress.org/plugins/
Or find reviews of plugin here
https://codecanyon.net/category/all
If it has 4 and more Stars, I think you dont need to worry about security.
Tell please if it helps you...

What is this heavy file (ziY7hRQ8) in Wordpress instalation

I realized recently the presence of a file named "ziY7hRQ8" in one of my Wordpress installations. No other installation has such file and moreover, it is quite heavy. Here's a sceenshot:
I've tried downloading and opening it with the text editor but it's illegible. Besides it has no extension. Any ideas what is this could be about?
This file is not from WordPress. You can delete it.
Sometimes this kind of file may appear if your site is malware-infected or it may be a corrupted file.
So, after deleting that file you should scan your whole site for safety.

How to find posts and pages in the backup

I have backup of my site on my pc and i'm trying to find posts and pages (my site content) but i can't find them, in what folder in backup should i search in please?
Posts and Pages aren't stored as files in WordPress, they are stored in your database. If you open up your wp-config.php, you'll see what database tables/prefix your installation is using.
Depending on how you backed up your website, there may be a file (perhaps a .sql file, or .tar.gz file, or some proprietary file) somewhere, often in the base directory, or in the wp-content or wp-content/uploads directory. If you don't have a file like that somewhere, or just backed up the files straight from your hosting account (such as cPanel), you'll need to go back in there and download a backup of your database as well.
Also note that pages, posts, and other custom post types are stored in the wp_posts table, all together. If your site relies on custom fields, those will be stored in your wp_postmeta table.

Wordpress. Downloadable doc/pdf files by category on my page

I have a question. I need to add a downloadable doc/pdf files to my page by category. Tell me what I can do? Doc files will be stored in the database? I can't understand how to realize it. Help, please.
Firstly, you can't store .doc and .pdf files in a database. Your files will be stored in the wp-content folder. Databases are to be used explicitly for storing website content in tables, such as posts, pages and plugin settings for example.
I'd highly recommend you look at some basic WordPress tutorials to understand how WordPress works before taking on something like this.
You can browse the plugin directory to look for a good file manager.
Here's an article that may help you - https://www.wpmayor.com/best-document-file-management-plugins-wordpress/
Google-fu is essential for solving very simply problems like this.

how to secure woocommerce downloadable files

As the title states I have a question about digital downloadable products through woocommerce. I am new to web development and wordpress so go easy on me. I am trying to add a downloadable product where you can't access the file by direct url. I have set the download type to force download to prevent link sharing but found that I can still access the purchasable files by typing in the direct path Example:
example.com/wp-content/uploads/woocommerce_uploads/2015/06/examplefile.pdf
I have done quite a bit of research but have come up with very few results. One of the only things that I have found is that I should move the downloadable files outside of the root directory. I have attempted to do this but then the download links no longer work. Instead of doing a forced download like normal it redirects to to a page like
example.com/home/user/public_html/home/user/downloads/examplefile.pdf
So I am thinking woocommerce must not be friendly with the files outside the root directory. All in all I am out of ideas of what else to try. Any help or suggestions of how to make this work (having files outside root directory) or other solutions would be greatly appreciated.
If you create a folder outside the public_html directory and upload the files here, you will be safe.
You can find detailed explanations about this topic and how to copy the links of uploaded files in this blog post.
You can add a .htaccess file in the woocommerce_uploads folder with
deny from all

Resources